Skip to content

Commit

Permalink
Eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
bgonp committed Mar 6, 2021
1 parent 33d0bd8 commit 4b300ac
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
24 changes: 24 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:react/recommended", "standard"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "react-hooks"],
"rules": {
"comma-dangle": ["error", "always-multiline"],
"react/prop-types": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"]
}
}

0 comments on commit 4b300ac

Please sign in to comment.