Skip to content

Commit

Permalink
feat: upgrade to [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
ASafaeirad committed Jan 18, 2024
1 parent cecd589 commit 786ad9f
Show file tree
Hide file tree
Showing 6 changed files with 381 additions and 285 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,16 @@ To conditionally disable expensive linting rules, you can modify your configurat

list of expensiveRules to be effected:

```js
'@typescript-eslint/no-misused-promises'
'import/no-cycle'
'import/namespace'
```
@typescript-eslint/no-misused-promises
import/no-cycle
import/named *
import/namespace *
import/default *
import/no-named-as-default-member *
```

> *: If you are using Typescript these rules are not needed and disabled by default.
```js
module.exports = init({
Expand Down
4 changes: 2 additions & 2 deletions import.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
},
rules: {
'import/consistent-type-specifier-style': ['warn', 'prefer-top-level'],
'import/default': 'error',
'import/default': expensiveRules('error'),
'import/dynamic-import-chunkname': 'off',
'import/export': expensiveRules('error'),
'import/exports-last': 'off',
Expand All @@ -40,7 +40,7 @@ module.exports = {
'import/no-internal-modules': 'off',
'import/no-mutable-exports': 'error',
'import/no-named-as-default': 'error',
'import/no-named-as-default-member': 'error',
'import/no-named-as-default-member': expensiveRules('error'),
'import/no-named-default': 'error',
'import/no-named-export': 'off',
'import/no-namespace': 'off',
Expand Down
Loading

0 comments on commit 786ad9f

Please sign in to comment.