Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit bcd2219

Browse files
committed
add eslint configuration
1 parent 23698a9 commit bcd2219

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.eslintrc.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parser": "babel-eslint",
3+
"env": {
4+
"browser": true,
5+
"commonjs": true,
6+
"es6": true,
7+
"node": true
8+
},
9+
"parserOptions": {
10+
"ecmaFeatures": {
11+
"jsx": true
12+
},
13+
"sourceType": "module"
14+
},
15+
"rules": {
16+
"no-const-assign": "warn",
17+
"no-this-before-super": "warn",
18+
"no-undef": "warn",
19+
"no-unreachable": "warn",
20+
"no-unused-vars": "warn",
21+
"constructor-super": "warn",
22+
"valid-typeof": "warn",
23+
"semi": "warn"
24+
},
25+
"plugins": [
26+
]
27+
}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules
2-
.eslintrc.json
32
jsconfig.json
43
yarn.lock
54
.vscode
6-
npm-debug.log
5+
npm-debug.log

0 commit comments

Comments
 (0)