Skip to content

Commit

Permalink
chore: 不需要使用@eslint/compat
Browse files Browse the repository at this point in the history
  • Loading branch information
duan602728596 committed Sep 13, 2024
1 parent dae043a commit acc12c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import process from 'node:process';
import { fixupPluginRules } from '@eslint/compat';
import babelEslintParser from '@babel/eslint-parser';
import typescriptEslintParser from '@typescript-eslint/parser';
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin';
Expand Down Expand Up @@ -40,8 +39,8 @@ const languageGlobalsOptions = {
};

const plugins = {
react: fixupPluginRules(eslintPluginReact),
import: fixupPluginRules(eslintPluginImport)
react: eslintPluginReact,
import: eslintPluginImport
};

const settings = {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"@ant-design/icons": "^5.4.0",
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@eslint/compat": "^1.1.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
"@sweet-milktea/babel-preset-sweet": "^4.3.0",
"@sweet-milktea/milktea-cli": "^4.1.0",
Expand Down

0 comments on commit acc12c7

Please sign in to comment.