Skip to content

Commit

Permalink
Upgrade eslint to v9.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouder committed Aug 5, 2024
1 parent ea9182f commit 9cbd11e
Show file tree
Hide file tree
Showing 5 changed files with 1,516 additions and 356 deletions.
42 changes: 0 additions & 42 deletions .eslintrc.cjs

This file was deleted.

4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ updates:
labels:
- 'dependencies'
groups:
typescript-eslint:
patterns:
- '@typescript-eslint/eslint-plugin'
- '@typescript-eslint/parser'
comet-uswds:
patterns:
- '@metrostar/comet-uswds'
Expand Down
31 changes: 31 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import pluginJs from '@eslint/js';
import reactPlugin from 'eslint-plugin-react';
import tseslint from 'typescript-eslint';

export default [
{
files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'],
settings: {
react: {
version: 'detect',
},
},
languageOptions: {
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
reactPlugin.configs.flat.recommended,
{
rules: {
'@typescript-eslint/no-unsafe-function-type': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'react/react-in-jsx-scope': 'off',
},
},
];
Loading

0 comments on commit 9cbd11e

Please sign in to comment.