Skip to content

Commit

Permalink
config eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed May 6, 2024
1 parent 8d28e86 commit edc8da7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"node": true,
"es2022": true,
},
"plugins": ["@typescript-eslint", "react", "react-hooks"],
"plugins": ["@typescript-eslint", "react", "react-hooks", "import"],
"settings": {
"react": {
"version": "detect",
Expand Down
15 changes: 15 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import typescriptPlugin from '@typescript-eslint/eslint-plugin'
import reactPlugin from 'eslint-plugin-react'
import reactHooksPlugin from 'eslint-plugin-react-hooks'
import parser from '@typescript-eslint/parser'

export default [
{
languageOptions: { parser },
plugins: {
typescript: typescriptPlugin,
react: reactPlugin,
reactHooks: reactHooksPlugin,
},
},
]

0 comments on commit edc8da7

Please sign in to comment.