Skip to content

Commit

Permalink
Re-add eslint-plugin-import (#3586)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rejas authored Oct 13, 2024
1 parent 3d1e8ab commit fff3106
Show file tree
Hide file tree
Showing 4 changed files with 789 additions and 403 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ _This release is scheduled to be released on 2025-01-01._

### Added

- [linter] re-added `eslint-plugin-import`now that it supports ESLint v9

### Removed

- [tests] Removed node-pty and drivelist from rebuilded test (#3575)
Expand Down
5 changes: 5 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import eslintPluginImport from "eslint-plugin-import";
import eslintPluginJest from "eslint-plugin-jest";
import eslintPluginJs from "@eslint/js";
import eslintPluginStylistic from "@stylistic/eslint-plugin";
import globals from "globals";

const config = [
eslintPluginJs.configs.recommended,
eslintPluginImport.flatConfigs.recommended,
{
files: ["**/*.js"],
languageOptions: {
Expand Down Expand Up @@ -53,6 +55,9 @@ const config = [
"@stylistic/spaced-comment": "off",
eqeqeq: "error",
"id-length": "off",
"import/order": "error",
"import/extensions": "error",
"import/newline-after-import": "error",
"init-declarations": "off",
"jest/consistent-test-it": "warn",
"jest/no-done-callback": "warn",
Expand Down
Loading

0 comments on commit fff3106

Please sign in to comment.