| 1 |
"use strict"; |
| 2 |
|
| 3 |
module.exports = { |
| 4 |
parser: "@babel/eslint-parser/experimental-worker", |
| 5 |
extends: "eslint:recommended", |
| 6 |
parserOptions: { |
| 7 |
sourceType: "module", |
| 8 |
requireConfigFile: false, |
| 9 |
babelOptions: { |
| 10 |
babelrc: false, |
| 11 |
configFile: false, |
| 12 |
|
| 13 |
parserOpts: { |
| 14 |
plugins: ["importAssertions"], |
| 15 |
}, |
| 16 |
}, |
| 17 |
}, |
| 18 |
globals: { |
| 19 |
|
| 20 |
Iterator: true, |
| 21 |
$Keys: true, |
| 22 |
}, |
| 23 |
env: { |
| 24 |
node: true, |
| 25 |
es2022: true, |
| 26 |
browser: true, |
| 27 |
}, |
| 28 |
rules: { |
| 29 |
curly: ["error", "multi-line"], |
| 30 |
"linebreak-style": ["error", "unix"], |
| 31 |
"no-case-declarations": "error", |
| 32 |
"no-confusing-arrow": "error", |
| 33 |
"no-empty": ["error", { allowEmptyCatch: true }], |
| 34 |
"no-process-exit": "error", |
| 35 |
"no-var": "error", |
| 36 |
"prefer-const": "error", |
| 37 |
}, |
| 38 |
}; |