Add .eslintrc.js

This commit is contained in:
Rob Watson 2021-09-06 16:24:52 +02:00
parent 2a7b1bfc2e
commit 040a0bf43c
1 changed files with 29 additions and 0 deletions

29
frontend/.eslintrc.js Normal file
View File

@ -0,0 +1,29 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"settings": {
"version": "detect"
},
"rules": {
"react/react-in-jsx-scope": "off"
}
};