-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.json
executable file
·30 lines (30 loc) · 1.07 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
{
"extends": ["eslint:recommended", "plugin:jsdoc/recommended"],
"env": { "node": true, "browser": true, "es6": true, "jest": true },
"parserOptions": { "ecmaVersion": 8 },
"rules": {
"strict": ["error", "global"],
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"semi": ["error", "never"],
"quotes": ["warn", "single", {
"avoidEscape": true
}],
"no-console": "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",
"jsdoc/valid-types": 0,
"jsdoc/check-tag-names": ["warn", { "definedTags": ["typicalname"] }]
},
"plugins": [ "jsdoc" ]
}