Skip to content

Commit 8190a4f

Browse files
committed
eslint added
1 parent 6927fe5 commit 8190a4f

File tree

3 files changed

+1432
-35
lines changed

3 files changed

+1432
-35
lines changed

.eslintrc.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"jest": true
7+
},
8+
"extends": "eslint:recommended",
9+
"globals": {
10+
"Atomics": "readonly",
11+
"SharedArrayBuffer": "readonly"
12+
},
13+
"parserOptions": {
14+
"ecmaVersion": 2018
15+
},
16+
"rules": {
17+
"indent": [
18+
"error",
19+
4,
20+
{
21+
"SwitchCase": 1
22+
}
23+
],
24+
"linebreak-style": [
25+
"error",
26+
"unix"
27+
],
28+
"quotes": [
29+
"error",
30+
"single"
31+
],
32+
"semi": [
33+
"error",
34+
"always"
35+
],
36+
"no-unused-vars": [
37+
2,
38+
{
39+
"args": "after-used",
40+
"argsIgnorePattern": "^_"
41+
}
42+
]
43+
}
44+
}

0 commit comments

Comments
 (0)