Skip to content

Commit 6354828

Browse files
committed
Add linting & edit scripts
1 parent 5f0bbb3 commit 6354828

File tree

3 files changed

+1093
-3
lines changed

3 files changed

+1093
-3
lines changed

.eslintrc

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"browser": true,
5+
"amd": true,
6+
"es6": true
7+
},
8+
"root": true,
9+
"extends": [
10+
"eslint:recommended"
11+
],
12+
"plugins": [
13+
"@typescript-eslint"
14+
],
15+
"parser": "@typescript-eslint/parser",
16+
"parserOptions": {
17+
"ecmaVersion": 6,
18+
"sourceType": "module",
19+
"ecmaFeatures": {
20+
"jsx": true
21+
}
22+
},
23+
"rules": {
24+
"no-cond-assign": [
25+
2,
26+
"except-parens"
27+
],
28+
"no-use-before-define": [
29+
2,
30+
{
31+
"functions": false,
32+
"classes": false,
33+
"variables": false
34+
}
35+
],
36+
"new-cap": 0,
37+
"no-caller": 2,
38+
"no-undef": 2,
39+
"no-unused-vars": 1,
40+
"no-empty": [
41+
"error",
42+
{
43+
"allowEmptyCatch": true
44+
}
45+
],
46+
"no-console": "off",
47+
"prefer-const": [
48+
"warn",
49+
{
50+
"destructuring": "all"
51+
}
52+
],
53+
"quotes": [
54+
"warn",
55+
"single"
56+
],
57+
"semi": [
58+
"warn",
59+
"never"
60+
],
61+
"spaced-comment": "warn"
62+
}
63+
}

0 commit comments

Comments
 (0)