Skip to content

Commit

Permalink
Merge pull request #322 from MetroStar/eslint-9
Browse files Browse the repository at this point in the history
Upgrade to ESLint 9
  • Loading branch information
jbouder authored Aug 5, 2024
2 parents ea9182f + ee34273 commit 8128425
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 8128425

Please sign in to comment.