-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.eslintrc.json
70 lines (70 loc) · 2.01 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"root":true,
"extends": [
"eslint:recommended",
"google",
"plugin:cypress/recommended",
"plugin:wc/recommended",
"plugin:lit/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"es6": true
},
// "eslintIgnore": ["cypress.config.js"],
// "ignorePatterns": ["cypress.config.js","cypress"],
"rules": {
"indent": ["error", 4, {
"SwitchCase": 1,
"ignoredNodes": ["TemplateLiteral","TaggedTemplateExpression","ObjectExpression","ArrowFunctionExpression"]
}
],
"no-multiple-empty-lines":["error",{"max":1}],
"max-len": ["error", 230],
"no-console": ["error", { "allow": ["log", "warn", "error", "time", "timeEnd"] }],
"no-param-reassign": ["warn", { "props": true }],
"no-undef": ["warn"],
"no-underscore-dangle": [0, { "allowAfterThis": true }],
"no-unused-vars": ["warn", { "varsIgnorePattern": "^[A-Za-z]+$" }],
"no-use-before-define": ["error", { "classes": false }],
"padded-blocks": ["error", { "classes": "always" }],
"quotes": ["warn", "double", {"allowTemplateLiterals": true}],
"comma-dangle": ["error", "only-multiline"],
"arrow-parens": ["error","as-needed"],
"no-invalid-this": 0,
"babel/no-invalid-this": 0,
"object-curly-spacing": ["error", "never"],
"valid-jsdoc": [2, {"prefer": {"return": "returns"}}],
"require-jsdoc": 0,
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"keyword-spacing": "error",
"space-in-parens": ["error", "never"],
"no-case-declarations": 0,
"one-var": ["error", { "initialized": "never", "uninitialized": "always" }]
},
"plugins": [
"lit"
],
"overrides": [
{
"files": ["*.js"],
"rules": {
"lit/no-property-change-update": 0,
"cypress/no-unnecessary-waiting": 0
}
}
],
"globals": {
"$": true,
"globalThis": true
}
}