forked from rsksmart/2wp-api
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslint.json
105 lines (100 loc) · 2.96 KB
/
.eslint.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb-base"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-unused-vars": 1,
"no-console": 1,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"import/order": 0,
"import/newline-after-import": 1,
"import/no-useless-path-segments": 1,
"no-underscore-dangle": 1,
"no-useless-constructor": 0,
"no-restricted-syntax": 0,
"no-plusplus": 1,
"no-await-in-loop": 0,
"no-return-await": 1,
"no-unused-expressions": 1,
"no-else-return": 1,
"no-continue": 1,
"no-use-before-define": 0,
"no-param-reassign": 1,
"no-async-promise-executor": 0,
"no-undef": 0,
"no-multiple-empty-lines": 2,
"no-multi-spaces": 2,
"no-trailing-spaces": 0,
"func-names": 0,
"prefer-arrow-callback": 0,
"prefer-regex-literals": 0,
"max-classes-per-file": 0,
"eqeqeq": ["error", "smart"],
"quotes": 1,
"spaced-comment": 0,
"class-methods-use-this": 0,
"radix": 0,
"prefer-const": 0,
"object-curly-spacing": 0,
"comma-dangle": 1,
"padded-blocks": 0,
"comma-spacing": 1,
"space-before-function-paren": 0,
"eol-last": 0,
"arrow-body-style": 0,
"prefer-template": 0,
"import/prefer-default-export": 0,
"new-cap": 0,
"lines-between-class-members": 1,
"prefer-destructuring": 0,
"prefer-promise-reject-errors": 0,
"object-shorthand": 0,
"consistent-return": 0,
"prefer-object-spread": 0,
"indent": 2,
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/no-floating-promises": 0,
"@typescript-eslint/await-thenable": 0,
"@typescript-eslint/return-await": 0,
"operator-linebreak": 2,
"brace-style": 1,
"semi": 0,
"no-shadow": 1,
"no-extra-semi": 2,
"no-empty-function": 2,
"arrow-parens": 1,
"max-len": [ "error", { "ignoreComments": true, "code": 110 } ],
"keyword-spacing": 0,
"object-curly-newline": 0,
"nonblock-statement-body-position": 0,
"no-whitespace-before-property": 2,
"default-case": 0,
"quote-props": 0,
"space-in-parens": 2,
"curly": 2,
"function-paren-newline": 2,
"implicit-arrow-linebreak": 2,
"space-infix-ops": 2,
"key-spacing": 2,
"no-unneeded-ternary": 2,
"array-bracket-spacing": 1,
"no-new": 2,
"space-unary-ops": 1,
"semi-spacing": 2
}
}