-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
54 lines (54 loc) · 1.56 KB
/
Copy patheslint.config.js
File metadata and controls
54 lines (54 loc) · 1.56 KB
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
module.exports = [
{
ignores: ["node_modules/"],
},
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
linterOptions: {
reportUnusedDisableDirectives: true,
},
rules: {
"indent": ["warn", "tab"],
"quotes": ["warn", "double"],
"semi": ["warn", "never"],
"implicit-arrow-linebreak": ["warn", "beside"],
"dot-notation": "warn",
"no-unused-vars": ["warn", { "args": "none", "caughtErrors": "none" }],
"no-unneeded-ternary": "warn",
"no-mixed-operators": "warn",
"nonblock-statement-body-position": ["warn", "beside"],
"spaced-comment": ["warn", "always"],
"no-multi-spaces": "warn",
"space-infix-ops": "warn",
"comma-spacing": "warn",
"key-spacing": "warn",
"space-in-parens": "warn",
"array-bracket-spacing": "warn",
"object-curly-spacing": ["warn", "always"],
"no-trailing-spaces": "warn",
"comma-style": "warn",
"no-array-constructor": "warn",
"prefer-template": "warn",
"template-curly-spacing": "warn",
"no-new-object": "warn",
"no-useless-concat": "warn",
"no-useless-return": "warn",
"no-useless-escape": "warn",
"no-useless-constructor": "warn",
"default-param-last": "warn",
"no-new-func": "warn",
"no-dupe-class-members": "warn",
"no-duplicate-imports": "warn",
"function-paren-newline": ["warn", "multiline"],
"prefer-arrow-callback": "warn",
"arrow-spacing": "warn",
"no-empty": ["warn", { "allowEmptyCatch": true }],
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"no-redeclare": "off",
"no-control-regex": "off",
},
},
]