Skip to content

Commit

Permalink
Upgrade ESLint from v8 to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
i-like-robots committed Aug 14, 2024
1 parent 90ba181 commit 9a310ca
Show file tree
Hide file tree
Showing 5 changed files with 2,004 additions and 792 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

30 changes: 0 additions & 30 deletions .eslintrc.js

This file was deleted.

32 changes: 32 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import js from '@eslint/js'
import globals from 'globals'
import react from 'eslint-plugin-react'

export default [
js.configs.recommended,
{
files: ['**/*.js'],
plugins: {
react
},
languageOptions: {
ecmaVersion: 2022,
// sourceType: 'module',
globals: {
...globals.node,
},
parserOptions: {
jsx: true,
},
},
settings: {
react: {
pragma: 'h',
fragment: 'Fragment'
}
},
},
{
ignores: ['**/dist/*']
},
]
Loading

0 comments on commit 9a310ca

Please sign in to comment.