-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
46 lines (46 loc) · 1.62 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
39
40
41
42
43
44
45
46
{
"root": true,
"extends": ["eslint:recommended", "plugin:jsdoc/recommended", "plugin:import/recommended", "plugin:promise/recommended"],
"parser": "@babel/eslint-parser",
"plugins": ["jsdoc", "import", "promise"],
"env": {
"es6": true,
"browser": true,
"node": true,
"shared-node-browser": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"requireConfigFile": false
},
"rules": {
"curly": ["error", "multi-line"],
"indent": ["error", 2, { "SwitchCase": 1, "MemberExpression": 1 }],
"no-console": ["error", { "allow": ["info", "debug", "warn", "error"] }],
"no-trailing-spaces": "warn",
"no-unreachable-loop": "error",
"no-unused-vars": "off",
"no-var": "error",
"prefer-const": "warn",
"quotes": ["warn", "single"],
"semi": ["error", "always"],
"valid-typeof": ["error", { "requireStringLiterals": true }],
"jsdoc/check-access": "warn",
"jsdoc/check-indentation": "warn",
"jsdoc/check-syntax": "warn",
"jsdoc/check-tag-names": "off",
"jsdoc/no-bad-blocks": "warn",
"jsdoc/no-undefined-types": "off",
"jsdoc/require-asterisk-prefix": "warn",
"jsdoc/require-description": ["warn", { "descriptionStyle": "tag" }],
"jsdoc/require-description-complete-sentence": ["warn",{ "abbreviations": ["etc", "e.g.", "i.e."] }],
"jsdoc/require-hyphen-before-param-description": "warn",
"jsdoc/require-jsdoc": "off",
"import/first": "warn",
"import/newline-after-import":"warn",
"import/no-empty-named-blocks": "warn",
"promise/always-return": "off",
"promise/catch-or-return": "off"
}
}