Skip to content

Commit

Permalink
feat(eslint, eslint-www): disable no-named-as-default
Browse files Browse the repository at this point in the history
  • Loading branch information
sixmen committed Dec 15, 2022
1 parent e2a4657 commit d927c72
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TypeScript/eslint-www/.changeset/hip-suits-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@croquiscom/eslint-config-www': patch
---

disable no-named-as-default
3 changes: 3 additions & 0 deletions TypeScript/eslint-www/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ module.exports = {
},
],

// 자연스러운 import를 방해해서 적용하지 않는다. 예) import Redis from 'ioredis';
'import/no-named-as-default': 'off',

// 과도한 import를 강요해서 적용하지 않는다. 예) import dayjs from 'dayjs'; dayjs.extend(); -> import { extend } from 'dayjs';
'import/no-named-as-default-member': 'off',

Expand Down
3 changes: 3 additions & 0 deletions TypeScript/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ module.exports = {
// import 순서를 강제한다.
'import/order': ['error', { alphabetize: { order: 'asc', caseInsensitive: true } }],

// 자연스러운 import를 방해해서 적용하지 않는다. 예) import Redis from 'ioredis';
'import/no-named-as-default': 'off',

// 과도한 import를 강요해서 적용하지 않는다. 예) import dayjs from 'dayjs'; dayjs.extend(); -> import { extend } from 'dayjs';
'import/no-named-as-default-member': 'off',

Expand Down

0 comments on commit d927c72

Please sign in to comment.