forked from about-code/glossarify-md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.54 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
41
42
43
44
45
{
"env": {
"commonjs": false,
"es6": true,
"node": true
},
"ignorePatterns": ["node_modules/", "test/node_modules/**/*"],
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"semi": [ "error", "always" ]
,"quotes": [ "error", "double" ]
,"indent": [ "error", 4 ]
,"dot-location": ["error", "property"]
,"dot-notation": ["error"]
,"linebreak-style": [ "error", "unix" ]
,"newline-per-chained-call": ["error", {"ignoreChainWithDepth": 2 }]
,"brace-style": ["error", "1tbs", { "allowSingleLine": true}]
,"curly": [ "error", "all"]
,"eol-last": ["error", "always"]
,"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0}]
,"no-trailing-spaces": ["error"]
,"space-before-blocks": ["error", {
"functions": "always"
,"keywords": "always"
,"classes": "always"
}]
,"block-spacing": ["error", "always"]
,"keyword-spacing": ["error", { "before": true, "after": true}]
,"spaced-comment": ["warn", "always", { "exceptions": ["_", "-", "="] }]
,"comma-dangle": ["error", "never"]
,"comma-style": ["warn", "first"]
,"guard-for-in": ["error"]
,"eqeqeq": ["error", "always"]
,"no-extra-bind": ["error"]
,"no-eval": ["error"]
}
}