|
38 | 38 | "rules": { |
39 | 39 | curly: 0, |
40 | 40 | eqeqeq: 0, |
41 | | - comma-dangle: 2, |
| 41 | + //comma-dangle: 2, |
42 | 42 | no-dupe-args: 2, |
43 | 43 | no-dupe-keys: 2, |
44 | 44 | no-duplicate-case: 2, |
|
56 | 56 | no-unexpected-multiline: 2, |
57 | 57 | use-isnan: 2, |
58 | 58 | valid-typeof: 2, |
59 | | - |
| 59 | + |
60 | 60 | accessor-pairs: 2, |
61 | 61 | complexity: 0, |
62 | 62 | dot-location: [2, "property"], |
|
80 | 80 | no-sequences: 2, |
81 | 81 | no-useless-call: 2, |
82 | 82 | yoda: 2, |
83 | | - |
| 83 | + |
84 | 84 | no-undef: 2, |
85 | 85 | no-redeclare: 0, |
86 | 86 | no-unused-vars: [1, {"args": "none", "vars": "all"}], |
87 | | - |
| 87 | + |
88 | 88 | no-debugger: 2, |
89 | 89 |
|
90 | 90 | ////////////////////////////////////////////////////////////////// |
|
108 | 108 | // no-else-return: 2, |
109 | 109 | // no-unused-expressions: 2, |
110 | 110 | // no-use-before-define: [2, { "functions": false, "classes": false, "variables": false }], |
111 | | - |
| 111 | + |
112 | 112 | // array-bracket-spacing: 2, // enforce spacing inside array brackets (fixable) |
113 | 113 | // block-spacing: 2, // disallow or enforce spaces inside of single line blocks (fixable) |
114 | | - // brace-style: 2, // enforce one true brace style |
| 114 | + // brace-style: 2, // enforce one true brace style |
115 | 115 | // camelcase: 2, // require camel case names |
116 | 116 | // comma-spacing: 2, // enforce spacing before and after comma (fixable) |
117 | 117 | // comma-style: 2, // enforce one true comma style |
118 | 118 | computed-property-spacing: 2, // require or disallow padding inside computed properties (fixable) |
119 | | - // consistent-this: 2, // enforce consistent naming when capturing the current execution context |
| 119 | + // consistent-this: 2, // enforce consistent naming when capturing the current execution context |
120 | 120 | linebreak-style: 2, // disallow mixed 'LF' and 'CRLF' as linebreaks |
121 | | - // indent: ["error", 4, { "outerIIFEBody": 0 }], // specify tab or space width for your code (fixable) |
| 121 | + // indent: ["error", 4, { "outerIIFEBody": 0 }], // specify tab or space width for your code (fixable) |
122 | 122 | // key-spacing: 2, // enforce spacing between keys and values in object literal properties |
123 | 123 | // new-cap: 2, // require a capital letter for constructors |
124 | 124 | // new-parens: 2, // disallow the omission of parentheses when invoking a constructor with no arguments |
|
151 | 151 | // space-infix-ops: 2, // require spaces around operators (fixable) |
152 | 152 | // space-unary-ops: 2, // require or disallow spaces before/after unary operators (fixable) |
153 | 153 | // spaced-comment: [2, "always", { markers: ["-", "*", "/", "{", "}", "#"], exceptions: ["}"] }] |
154 | | - |
155 | | - } |
| 154 | + |
| 155 | + }, |
| 156 | + |
| 157 | + // allow async/await in tests only |
| 158 | + overrides: [ |
| 159 | + { |
| 160 | + files: ["**/*_test.js"], |
| 161 | + parserOptions: { |
| 162 | + ecmaVersion: 2022, |
| 163 | + }, |
| 164 | + env: { |
| 165 | + }, |
| 166 | + rules: { |
| 167 | + }, |
| 168 | + } |
| 169 | + ] |
156 | 170 | } |
0 commit comments