Skip to content

Commit

Permalink
Upgrade to ESLint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
spautz committed Jul 15, 2024
1 parent 72f1cd0 commit 6178c76
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 220 deletions.
5 changes: 3 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fixupPluginRules } from '@eslint/compat';
import eslintJs from '@eslint/js';
import eslintConfigPrettier from 'eslint-config-prettier';
import eslintConfigReactApp from 'eslint-config-react-app';
Expand Down Expand Up @@ -33,9 +34,9 @@ const eslintConfig = [
{
plugins: {
// These plugins are all needed for eslint-config-react-app
flowtype: eslintPluginFlowtype,
flowtype: fixupPluginRules(eslintPluginFlowtype),
'jsx-a11y': eslintPluginJsxA11y,
import: eslintPluginImport,
import: fixupPluginRules(eslintPluginImport),
'react-hooks': eslintPluginReactHooks,
},
linterOptions: {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"devDependencies": {
"@arethetypeswrong/cli": "0.16.0",
"@changesets/cli": "2.27.7",
"@eslint/compat": "1.1.1",
"@size-limit/preset-small-lib": "11.1.4",
"@testing-library/jest-dom": "6.4.6",
"@testing-library/react": "16.0.0",
Expand All @@ -81,7 +82,7 @@
"changesets-format-with-issue-links": "0.3.0",
"cross-env": "7.0.3",
"downlevel-dts": "0.11.0",
"eslint": "8.57.0",
"eslint": "9.7.0",
"eslint-config-prettier": "9.1.0",
"eslint-config-react-app": "7.0.1",
"eslint-plugin-react": "7.34.3",
Expand Down
Loading

0 comments on commit 6178c76

Please sign in to comment.