-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc
38 lines (38 loc) · 1.35 KB
/
.eslintrc
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
{
"extends": ["eslint:recommended", "plugin:jsdoc/recommended"],
"env": { "node": true, "browser": true, "es6": true, "jest": true },
"parserOptions": { "ecmaVersion": 2018 },
"rules": {
"strict": ["error", "global"],
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"semi": ["error", "never"],
"quotes": ["warn", "single", { "avoidEscape": true }],
"no-console": "warn",
"require-jsdoc": "off",
"valid-jsdoc": "warn",
"no-unused-vars": "warn",
"no-trailing-spaces": "error",
"curly": "error",
"handle-callback-err": "error",
"eol-last": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"space-in-parens": ["error", "never"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-nested-ternary": "error",
"no-unneeded-ternary": "error",
"no-tabs": "error",
"no-whitespace-before-property": "error",
"space-unary-ops": ["warn", {
"overrides": {
"!": true,
"!!": true,
"+": true,
"-": true
}
}],
"jsdoc/valid-types": 0,
"jsdoc/check-tag-names": ["warn", { "definedTags": ["typicalname"] }]
},
"plugins": [ "jsdoc" ]
}