Skip to content

Commit fff3106

Browse files
authored
Re-add eslint-plugin-import (#3586)
eslint-plugin-import was missing since the switch to [v9](#3558). They finally [support](import-js/eslint-plugin-import#2996) it so we can re-add it.
1 parent 3d1e8ab commit fff3106

File tree

4 files changed

+789
-403
lines changed

4 files changed

+789
-403
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ _This release is scheduled to be released on 2025-01-01._
1111

1212
### Added
1313

14+
- [linter] re-added `eslint-plugin-import`now that it supports ESLint v9
15+
1416
### Removed
1517

1618
- [tests] Removed node-pty and drivelist from rebuilded test (#3575)

eslint.config.mjs

+5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import eslintPluginImport from "eslint-plugin-import";
12
import eslintPluginJest from "eslint-plugin-jest";
23
import eslintPluginJs from "@eslint/js";
34
import eslintPluginStylistic from "@stylistic/eslint-plugin";
45
import globals from "globals";
56

67
const config = [
78
eslintPluginJs.configs.recommended,
9+
eslintPluginImport.flatConfigs.recommended,
810
{
911
files: ["**/*.js"],
1012
languageOptions: {
@@ -53,6 +55,9 @@ const config = [
5355
"@stylistic/spaced-comment": "off",
5456
eqeqeq: "error",
5557
"id-length": "off",
58+
"import/order": "error",
59+
"import/extensions": "error",
60+
"import/newline-after-import": "error",
5661
"init-declarations": "off",
5762
"jest/consistent-test-it": "warn",
5863
"jest/no-done-callback": "warn",

0 commit comments

Comments
 (0)