|
21 | 21 | "no-string-throw": true, |
22 | 22 | "no-unused-expression": true, |
23 | 23 | "no-var-keyword": true, |
24 | | - "triple-equals": [ |
25 | | - true, |
26 | | - "allow-null-check", |
27 | | - "allow-undefined-check" |
28 | | - ], |
| 24 | + "triple-equals": [true, "allow-null-check", "allow-undefined-check"], |
29 | 25 | "typeof-compare": true, |
30 | 26 |
|
31 | 27 | // These rules make code maintenance easier |
32 | | - "eofline": true, |
33 | | - "indent": [true, "spaces"], |
34 | 28 | "no-default-export": true, |
35 | | - "no-trailing-whitespace": true, |
36 | | - "prefer-const": true, |
37 | | - "trailing-comma": [true, { |
38 | | - "multiline": "always", |
39 | | - "singleline": "never" |
40 | | - }], |
41 | | - |
42 | | - // These rules enforce consistent style across your codebase: |
43 | | - "arrow-return-shorthand": [true], |
44 | | - "class-name": true, |
45 | | - "comment-format": [true, "check-space"], |
46 | | - "file-header": [true, "Copyright IBM"], |
47 | | - "max-line-length": [true, 80], |
48 | | - "no-consecutive-blank-lines": [true, 2], |
49 | | - "no-unnecessary-callback-wrapper": true, |
50 | | - "one-variable-per-declaration": [true, "ignore-for-loop"], |
51 | | - "prefer-method-signature": true, |
52 | | - "quotemark": [true, "single", "avoid-escape"], |
53 | | - "semicolon": [true, "always"], |
54 | | - "space-before-function-paren": [true, { |
55 | | - "anonymous": "never", |
56 | | - "named": "never", |
57 | | - "asyncArrow": "always", |
58 | | - "method": "never", |
59 | | - "constructor": "never" |
60 | | - }], |
61 | | - "variable-name": [true, "allow-leading-underscore", "ban-keywords", "check-format"], |
62 | | - "whitespace": [ |
63 | | - true, |
64 | | - "check-branch", |
65 | | - "check-decl", |
66 | | - "check-separator", |
67 | | - "check-type", |
68 | | - "check-typecast", |
69 | | - "check-preblock" |
70 | | - ] |
| 29 | + "prefer-const": true |
71 | 30 | } |
72 | 31 | } |
0 commit comments