mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2024-12-18 21:45:04 +01:00
fix: remove eslint-plugin-import rules
We'll consider using eslint-plugin-import-x in the next major version, https://github.com/theoludwig/eslint-config-conventions/issues/3 We remove this plugin to avoid issues like this: https://github.com/pnpm/pnpm/issues/4619 (should be resolved when ESLint v9 is fully supported) And because of the lack of features, that eslint-plugin-import-x implement: (https://github.com/un-ts/eslint-plugin-import-x/issues/24#issuecomment-1991605123)
This commit is contained in:
parent
c751162403
commit
b4de437548
@ -1,6 +1,6 @@
|
||||
{
|
||||
"root": true,
|
||||
"plugins": ["import", "promise", "unicorn"],
|
||||
"plugins": ["promise", "unicorn"],
|
||||
"env": {
|
||||
"browser": true,
|
||||
"node": true,
|
||||
@ -157,24 +157,6 @@
|
||||
"arrow-parens": ["error", "always"],
|
||||
"arrow-body-style": ["error", "always"],
|
||||
|
||||
"import/no-absolute-path": "error",
|
||||
"import/no-webpack-loader-syntax": "error",
|
||||
"import/no-self-import": "error",
|
||||
"import/no-useless-path-segments": "error",
|
||||
"import/export": "error",
|
||||
"import/first": "error",
|
||||
"import/no-duplicates": "error",
|
||||
"import/order": [
|
||||
"error",
|
||||
{
|
||||
"groups": ["builtin", "external", "internal"],
|
||||
"newlines-between": "always"
|
||||
}
|
||||
],
|
||||
"import/no-named-default": "error",
|
||||
"import/no-empty-named-blocks": "error",
|
||||
"import/no-anonymous-default-export": "error",
|
||||
|
||||
"promise/param-names": "error",
|
||||
"promise/no-new-statics": "error",
|
||||
"promise/no-multiple-resolved": "error",
|
||||
|
@ -36,7 +36,6 @@ More information about **formatting rules** vs **code-quality rules** can be fou
|
||||
```sh
|
||||
npm install --save-dev \
|
||||
eslint@^8.56.0 \
|
||||
eslint-plugin-import@^2.29.1 \
|
||||
eslint-plugin-promise@^6.1.1 \
|
||||
eslint-plugin-unicorn@^53.0.0 \
|
||||
eslint-config-conventions@latest
|
||||
@ -46,7 +45,6 @@ Dependencies are:
|
||||
|
||||
- [ESLint](https://github.com/eslint/eslint)
|
||||
- 3 [ESLint Plugins](https://eslint.org/docs/user-guide/configuring/plugins)
|
||||
- [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import)
|
||||
- [eslint-plugin-promise](https://github.com/xjamundx/eslint-plugin-promise)
|
||||
- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
||||
- This package: `eslint-config-conventions`
|
||||
|
1364
package-lock.json
generated
1364
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -49,7 +49,6 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-promise": "^6.1.1",
|
||||
"eslint-plugin-unicorn": "^51.0.1 || ^52.0.0 || ^53.0.0 || ^54.0.0"
|
||||
},
|
||||
@ -63,7 +62,6 @@
|
||||
"@typescript-eslint/parser": "7.16.0",
|
||||
"editorconfig-checker": "5.1.8",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-plugin-import": "2.29.1",
|
||||
"eslint-plugin-promise": "6.4.0",
|
||||
"eslint-plugin-unicorn": "54.0.0",
|
||||
"husky": "9.0.11",
|
||||
|
Loading…
Reference in New Issue
Block a user