Skip to content

Commit 44eac09

Browse files
committed
Set up linting
1 parent a96b84f commit 44eac09

File tree

4 files changed

+2857
-103
lines changed

4 files changed

+2857
-103
lines changed

.babelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
["@babel/preset-react", {"absoluteRuntime": false}]
5+
]
6+
}

.eslintrc.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:react/recommended"
9+
],
10+
"parser": "@babel/eslint-parser",
11+
"parserOptions": {
12+
"ecmaFeatures": {
13+
"jsx": true
14+
},
15+
"ecmaVersion": 12,
16+
"sourceType": "module"
17+
},
18+
"plugins": [
19+
"react"
20+
],
21+
"rules": {
22+
"react/prop-types": "off",
23+
"no-prototype-builtins": "off",
24+
"no-unused-vars": "warn",
25+
"no-unreachable": "warn"
26+
},
27+
"globals": {
28+
"React": "readonly",
29+
"ReactDOM": "readonly"
30+
}
31+
}

0 commit comments

Comments
 (0)