|
| 1 | +root: true |
| 2 | + |
| 3 | +extends: |
| 4 | + - 'eslint:recommended' |
| 5 | + |
| 6 | +parserOptions: |
| 7 | + ecmaVersion: 2022 |
| 8 | + sourceType: module |
| 9 | + requireConfigFile: false |
| 10 | + |
| 11 | +env: |
| 12 | + es2020: true |
| 13 | + node: true |
| 14 | + browser: true |
| 15 | + |
| 16 | +rules: |
| 17 | + array-bracket-spacing: 2 |
| 18 | + block-spacing: 2 |
| 19 | + brace-style: [2, '1tbs', { allowSingleLine: true }] |
| 20 | + comma-dangle: 2 |
| 21 | + comma-spacing: 2 |
| 22 | + comma-style: 2 |
| 23 | + complexity: [1, 16] |
| 24 | + dot-location: [2, 'property'] |
| 25 | + eqeqeq: [2, 'smart'] |
| 26 | + indent: [0, 2, { SwitchCase: 1 }] |
| 27 | + indent-legacy: [2, 2, { SwitchCase: 1 }] |
| 28 | + key-spacing: [1, { beforeColon: false, afterColon: true }] |
| 29 | + keyword-spacing: 2 |
| 30 | + max-depth: [1, 6] |
| 31 | + max-len: [1, 80, 2, { ignoreComments: true, ignoreUrls: true, ignorePattern: "[`'\"\/],?$" }] |
| 32 | + max-nested-callbacks: [1, 4] |
| 33 | + no-caller: 2 |
| 34 | + no-constant-condition: [2, { checkLoops: false }] |
| 35 | + no-eval: 2 |
| 36 | + no-implied-eval: 2 |
| 37 | + no-mixed-spaces-and-tabs: 2 |
| 38 | + no-multi-str: 2 |
| 39 | + no-shadow: |
| 40 | + [2, { allow: ['done', 'reject', 'resolve', 'conn', 'cb', 'err', 'error'] }] |
| 41 | + no-spaced-func: 2 |
| 42 | + no-trailing-spaces: 2 |
| 43 | + no-unexpected-multiline: 2 |
| 44 | + no-unneeded-ternary: 2 |
| 45 | + no-unreachable: 2 |
| 46 | + no-useless-concat: 2 |
| 47 | + no-unsafe-finally: 0 |
| 48 | + object-curly-spacing: [2, 'always'] |
| 49 | + operator-linebreak: [2, 'after'] |
| 50 | + quote-props: [2, 'consistent-as-needed'] |
| 51 | + quotes: [2, 'single', 'avoid-escape'] |
| 52 | + radix: 2 |
| 53 | + require-atomic-updates: 0 |
| 54 | + semi-spacing: 0 |
| 55 | + semi: [2, 'never'] |
| 56 | + space-before-blocks: 2 |
| 57 | + space-before-function-paren: [2, { anonymous: 'always', named: 'never' }] |
| 58 | + space-infix-ops: 2 |
| 59 | + space-unary-ops: 2 |
| 60 | + space-in-parens: 2 |
| 61 | + wrap-regex: 2 |
0 commit comments