|
| 1 | +const js = require('@eslint/js') |
| 2 | + |
| 3 | +module.exports = [ |
| 4 | + js.configs.recommended, |
| 5 | + { |
| 6 | + ignores: [], |
| 7 | + languageOptions: { |
| 8 | + ecmaVersion: 2022, |
| 9 | + sourceType: "module", |
| 10 | + globals: { |
| 11 | + Set: true, |
| 12 | + console: true |
| 13 | + } |
| 14 | + }, |
| 15 | + rules: { |
| 16 | + "global-require": 0, |
| 17 | + "no-sequences": 0, |
| 18 | + "semi": [2, "never"], |
| 19 | + "strict": [2, "never"], |
| 20 | + "one-var": [2, { |
| 21 | + "let": "always", |
| 22 | + "const": "never" |
| 23 | + }], |
| 24 | + "space-in-parens": [2, "never" ], |
| 25 | + "indent": [2, 2, { |
| 26 | + "flatTernaryExpressions": true, |
| 27 | + "VariableDeclarator": { |
| 28 | + "let": 2, |
| 29 | + "const": 3 |
| 30 | + } |
| 31 | + }], |
| 32 | + "camelcase": [2, {"properties": "never"}], |
| 33 | + "func-names": [2, "never"], |
| 34 | + "newline-per-chained-call": 0, |
| 35 | + "max-len": [2, 80], |
| 36 | + "comma-dangle": [2, "never"], |
| 37 | + "prefer-template": 0, |
| 38 | + "no-use-before-define": 0, |
| 39 | + "no-mixed-operators": 0, |
| 40 | + "no-plusplus": 0, |
| 41 | + "no-console": 0, |
| 42 | + "object-curly-newline": 0, |
| 43 | + "nonblock-statement-body-position": 0, |
| 44 | + "arrow-parens": [2, "as-needed"], |
| 45 | + "space-before-function-paren": [2, "always"], |
| 46 | + "function-paren-newline": 0, |
| 47 | + "consistent-return": 0, |
| 48 | + "array-callback-return": 0, |
| 49 | + "prefer-const": 0, |
| 50 | + "curly": 0, |
| 51 | + "operator-linebreak": 0, |
| 52 | + "no-param-reassign": 0, |
| 53 | + "key-spacing": [2, {"beforeColon": true}], |
| 54 | + "implicit-arrow-linebreak": 0, |
| 55 | + "no-shadow": [0, "warn", { |
| 56 | + "allow": [ "err" ] |
| 57 | + } |
| 58 | + ], |
| 59 | + "prefer-arrow-callback": [2, { |
| 60 | + "allowNamedFunctions": true |
| 61 | + }], |
| 62 | + "no-return-assign": 0, |
| 63 | + "no-nested-ternary": 0, |
| 64 | + "array-bracket-spacing": [2, "always"], |
| 65 | + "prefer-destructuring": 2, |
| 66 | + "class-methods-use-this": 0, |
| 67 | + "no-confusing-arrow": 0 |
| 68 | + } |
| 69 | + } |
| 70 | +] |
0 commit comments