forked from gram-js/gramjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
40 lines (40 loc) · 1.08 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"env": {
"commonjs": true,
"es6": true,
"node": true,
"jest": true
},
"extends": ["eslint:recommended"],
"globals": {
"BigInt": true,
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "1tbs"],
"comma-dangle": ["error", "always-multiline"],
"curly": ["error", "all"],
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"no-var": "error",
"operator-linebreak": ["error", "after"],
"prefer-const": ["error", { "destructuring": "any" }],
"quotes": ["error", "single", { "avoidEscape": true }],
"semi": ["error", "never"],
"max-len": [
"error",
{
"code": 120,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
]
}
}