Skip to content

Commit 585bf2e

Browse files
Add eslint config
1 parent 7e22168 commit 585bf2e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.eslintrc.js

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:react/recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:react-hooks/recommended"
11+
],
12+
"overrides": [
13+
],
14+
"parser": "@typescript-eslint/parser",
15+
"parserOptions": {
16+
"ecmaVersion": "latest",
17+
"sourceType": "module"
18+
},
19+
"plugins": [
20+
"react",
21+
"@typescript-eslint"
22+
],
23+
"rules": {
24+
"@typescript-eslint/ban-types": [ "warn"],
25+
"@typescript-eslint/ban-ts-comment": ['warn']
26+
},
27+
}
28+

0 commit comments

Comments
 (0)