|
1 | 1 | { |
2 | | - "extends": "eslint:recommended", |
3 | | - "env": { |
4 | | - "node": true, |
5 | | - "es6": true |
6 | | - }, |
7 | | - "parserOptions": { |
8 | | - "ecmaVersion": 2017 |
9 | | - }, |
10 | | - "rules": { |
11 | | - "no-extra-parens": ["warn", "all", { |
12 | | - "nestedBinaryExpressions": false |
13 | | - }], |
14 | | - "valid-jsdoc": ["warn", { |
15 | | - "requireReturn": false, |
16 | | - "requireReturnDescription": false, |
17 | | - "preferType": { |
18 | | - "String": "string", |
19 | | - "Number": "number", |
20 | | - "Boolean": "boolean", |
21 | | - "Symbol": "symbol", |
22 | | - "function": "Function", |
23 | | - "object": "Object", |
24 | | - "date": "Date", |
25 | | - "error": "Error", |
26 | | - "Void": "void" |
27 | | - } |
28 | | - }], |
29 | | - |
30 | | - "accessor-pairs": "warn", |
31 | | - "array-callback-return": "error", |
32 | | - "complexity": "warn", |
33 | | - "consistent-return": "error", |
34 | | - "dot-location": ["error", "property"], |
35 | | - "dot-notation": "error", |
36 | | - "eqeqeq": "error", |
37 | | - "no-console": ["error", { "allow": ["log", "warn", "error"] }], |
38 | | - "no-empty-function": "error", |
39 | | - "no-floating-decimal": "error", |
40 | | - "no-implied-eval": "error", |
41 | | - "no-invalid-this": "error", |
42 | | - "no-lone-blocks": "error", |
43 | | - "no-multi-spaces": "error", |
44 | | - "no-new-func": "error", |
45 | | - "no-new-wrappers": "error", |
46 | | - "no-new": "error", |
47 | | - "no-octal-escape": "error", |
48 | | - "no-return-assign": "error", |
49 | | - "no-self-compare": "error", |
50 | | - "no-sequences": "error", |
51 | | - "no-unmodified-loop-condition": "error", |
52 | | - "no-unused-expressions": "error", |
53 | | - "no-useless-call": "error", |
54 | | - "no-useless-concat": "error", |
55 | | - "no-useless-escape": "error", |
56 | | - "no-void": "error", |
57 | | - "no-warning-comments": "warn", |
58 | | - "wrap-iife": "error", |
59 | | - "yoda": "error", |
60 | | - |
61 | | - "no-label-var": "error", |
62 | | - "no-shadow": "error", |
63 | | - "no-undef-init": "error", |
64 | | - |
65 | | - "callback-return": "error", |
66 | | - "handle-callback-err": "error", |
67 | | - "no-mixed-requires": "error", |
68 | | - "no-new-require": "error", |
69 | | - "no-path-concat": "error", |
70 | | - "no-process-env": "error", |
71 | | - |
72 | | - "array-bracket-spacing": "error", |
73 | | - "block-spacing": "error", |
74 | | - "brace-style": ["error", "1tbs", { "allowSingleLine": true }], |
75 | | - "camelcase": "error", |
76 | | - "comma-dangle": "error", |
77 | | - "comma-spacing": "error", |
78 | | - "comma-style": "error", |
79 | | - "computed-property-spacing": "error", |
80 | | - "consistent-this": "error", |
81 | | - "func-names": "error", |
82 | | - "func-style": ["error", "declaration", { "allowArrowFunctions": true }], |
83 | | - "indent": ["error", 4, { "SwitchCase": 1 }], |
84 | | - "key-spacing": "error", |
85 | | - "keyword-spacing": ["error", { |
86 | | - "overrides": { |
87 | | - "if": { "after": true }, |
88 | | - "for": { "after": true }, |
89 | | - "while": { "after": true }, |
90 | | - "catch": { "after": true }, |
91 | | - "switch": { "after": true } |
92 | | - } |
93 | | - }], |
94 | | - "max-depth": "error", |
| 2 | + "extends": "klasa", |
| 3 | + "parserOptions": { |
| 4 | + "ecmaVersion": 2018 |
| 5 | + }, |
| 6 | + "rules": { |
95 | 7 | "max-len": "off", |
96 | | - "max-nested-callbacks": "off", |
97 | | - "max-statements-per-line": ["error", { "max": 2 }], |
98 | | - "new-cap": "error", |
99 | | - "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 6 }], |
100 | | - "no-array-constructor": "error", |
101 | | - "no-bitwise": "warn", |
102 | | - "no-inline-comments": "error", |
103 | | - "no-lonely-if": "error", |
104 | | - "no-mixed-operators": ["error", { "allowSamePrecedence": true }], |
105 | | - "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }], |
106 | | - "no-new-object": "error", |
107 | | - "no-spaced-func": "error", |
108 | | - "no-trailing-spaces": "error", |
109 | | - "no-unneeded-ternary": "error", |
110 | | - "no-whitespace-before-property": "error", |
111 | | - "object-curly-newline": "error", |
112 | | - "object-curly-spacing": ["error", "always"], |
113 | | - "operator-assignment": "error", |
114 | | - "operator-linebreak": ["error", "after"], |
115 | | - "padded-blocks": ["error", { "classes": "always", "blocks": "never", "switches": "never" }], |
116 | | - "quote-props": ["error", "as-needed"], |
117 | | - "quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }], |
118 | | - "semi-spacing": "error", |
119 | | - "semi": "error", |
120 | | - "space-before-blocks": "error", |
121 | | - "space-before-function-paren": ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }], |
122 | | - "space-in-parens": "error", |
123 | | - "space-infix-ops": "error", |
124 | | - "space-unary-ops": "error", |
125 | | - "spaced-comment": "error", |
126 | | - "unicode-bom": "error", |
127 | | - |
128 | | - "arrow-body-style": "error", |
129 | | - "arrow-spacing": "error", |
130 | | - "no-duplicate-imports": "error", |
131 | | - "no-useless-computed-key": "error", |
132 | | - "no-useless-constructor": "error", |
133 | | - "prefer-arrow-callback": "error", |
134 | | - "prefer-const": "error", |
135 | | - "prefer-rest-params": "error", |
136 | | - "prefer-spread": "error", |
137 | | - "prefer-template": "error", |
138 | | - "rest-spread-spacing": "error", |
139 | | - "template-curly-spacing": "error", |
140 | | - "yield-star-spacing": "error", |
141 | | - "linebreak-style": ["error", "unix"] |
142 | | - } |
| 8 | + "operator-linebreak": ["error", "before", { "overrides": { "+": "after", "=": "after" } }], |
| 9 | + "curly": ["error", "multi-or-nest", "consistent"], |
| 10 | + "id-length": "off", |
| 11 | + "no-bitwise": ["error", { "int32Hint": true }], |
| 12 | + "no-cond-assign": "off" |
| 13 | + } |
143 | 14 | } |
0 commit comments