|
| 1 | +{ |
| 2 | + "ignorePatterns": [ |
| 3 | + "src/**" |
| 4 | + ], |
| 5 | + "extends": [ |
| 6 | + "eslint:recommended", |
| 7 | + "plugin:node/recommended" |
| 8 | + ], |
| 9 | + "parserOptions": { |
| 10 | + "ecmaVersion": 2022 |
| 11 | + }, |
| 12 | + "env": { |
| 13 | + "node": true, |
| 14 | + "es6": true |
| 15 | + }, |
| 16 | + "rules": { |
| 17 | + "arrow-parens": ["error", "always"], |
| 18 | + "no-trailing-spaces": [ |
| 19 | + "error", |
| 20 | + { |
| 21 | + "skipBlankLines": true |
| 22 | + } |
| 23 | + ], |
| 24 | + "indent": [ |
| 25 | + "error", |
| 26 | + "tab", |
| 27 | + { |
| 28 | + "SwitchCase": 1 |
| 29 | + } |
| 30 | + ], |
| 31 | + "operator-linebreak": [ |
| 32 | + "error", |
| 33 | + "after", |
| 34 | + { |
| 35 | + "overrides": { |
| 36 | + "?": "before", |
| 37 | + ":": "before" |
| 38 | + } |
| 39 | + } |
| 40 | + ], |
| 41 | + "max-len": ["error", 110], |
| 42 | + "quotes": [ |
| 43 | + "error", |
| 44 | + "single" |
| 45 | + ], |
| 46 | + "semi": [ |
| 47 | + "error", |
| 48 | + "always" |
| 49 | + ], |
| 50 | + "no-multiple-empty-lines": ["error", { "max": 3, "maxEOF": 1, "maxBOF": 1 }], |
| 51 | + "keyword-spacing": ["error", { "before": true, "after": true }], |
| 52 | + "space-before-blocks": ["error"], |
| 53 | + "space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}], |
| 54 | + "camelcase": ["error"], |
| 55 | + "no-tabs": [0], |
| 56 | + "global-require": [0], |
| 57 | + "no-underscore-dangle": [0], |
| 58 | + "no-plusplus": [0], |
| 59 | + "no-shadow": [0], |
| 60 | + "node/no-unpublished-require": [0], |
| 61 | + "no-process-exit": [0], |
| 62 | + "linebreak-style": [0], |
| 63 | + "node/no-missing-require": [0], |
| 64 | + "no-console": [0], |
| 65 | + "node/no-unsupported-features/es-builtins": [ |
| 66 | + "error", |
| 67 | + { "version": ">=18.16.0" } |
| 68 | + ], |
| 69 | + "node/no-unsupported-features/node-builtins": [ |
| 70 | + "error", |
| 71 | + { "version": ">=18.16.0" } |
| 72 | + ], |
| 73 | + "func-names": [ |
| 74 | + "error", |
| 75 | + "never", |
| 76 | + { |
| 77 | + "generators": "never" |
| 78 | + } |
| 79 | + ] |
| 80 | + } |
| 81 | +} |
0 commit comments