|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + |
| 4 | + "extends": "@ljharb/eslint-config/node/8", |
| 5 | + |
| 6 | + "rules": { |
| 7 | + "comma-dangle": "warn", |
| 8 | + "func-style": "off", |
| 9 | + "id-length": "off", |
| 10 | + "indent": ["error", 2], |
| 11 | + "multiline-comment-style": "off", |
| 12 | + "no-unused-vars": "warn", |
| 13 | + "sort-keys": "off", |
| 14 | + }, |
| 15 | + |
| 16 | + "ignorePatterns": [ |
| 17 | + "build", |
| 18 | + ], |
| 19 | + |
| 20 | + "overrides": [ |
| 21 | + { |
| 22 | + "files": "test.js", |
| 23 | + "rules": { |
| 24 | + "global-require": "off", |
| 25 | + "max-nested-callbacks": "off", |
| 26 | + }, |
| 27 | + }, |
| 28 | + { |
| 29 | + "files": "assert.js", // mostly from node core |
| 30 | + "rules": { |
| 31 | + "array-bracket-newline": "off", |
| 32 | + "array-element-newline": "off", |
| 33 | + "arrow-body-style": "off", |
| 34 | + "arrow-parens": "off", |
| 35 | + "curly": "off", |
| 36 | + "eqeqeq": "off", |
| 37 | + "func-name-matching": "off", |
| 38 | + "function-call-argument-newline": "off", |
| 39 | + "function-paren-newline": "off", |
| 40 | + "global-require": "off", |
| 41 | + "indent": "off", |
| 42 | + "max-lines": "off", |
| 43 | + "max-params": "off", |
| 44 | + "new-cap": "off", |
| 45 | + "no-mixed-operators": "off", |
| 46 | + "no-multi-assign": "off", |
| 47 | + "no-negated-condition": "off", |
| 48 | + "no-param-reassign": "off", |
| 49 | + "operator-linebreak": ["error", "after"], |
| 50 | + "no-prototype-builtins": "off", |
| 51 | + "no-restricted-syntax": "off", |
| 52 | + "no-use-before-define": "off", |
| 53 | + "no-var": "off", |
| 54 | + "nonblock-statement-body-position": "off", |
| 55 | + "object-curly-newline": "off", |
| 56 | + "prefer-destructuring": "off", |
| 57 | + "prefer-template": "off", |
| 58 | + "sort-keys": "off", |
| 59 | + }, |
| 60 | + }, |
| 61 | + { |
| 62 | + "files": "internal/**", |
| 63 | + "rules": { |
| 64 | + "arrow-parens": "off", |
| 65 | + "camelcase": "off", |
| 66 | + "complexity": "off", |
| 67 | + "curly": "off", |
| 68 | + "default-case": "off", |
| 69 | + "eqeqeq": "off", |
| 70 | + "function-call-argument-newline": "off", |
| 71 | + "function-paren-newline": "off", |
| 72 | + "global-require": "off", |
| 73 | + "indent": "off", |
| 74 | + "max-depth": "off", |
| 75 | + "max-lines-per-function": "off", |
| 76 | + "max-lines": "off", |
| 77 | + "max-params": "off", |
| 78 | + "max-statements": "off", |
| 79 | + "no-else-return": "off", |
| 80 | + "no-extra-parens": "off", |
| 81 | + "no-implicit-coercion": "off", |
| 82 | + "no-mixed-operators": "off", |
| 83 | + "no-negated-condition": "off", |
| 84 | + "no-param-reassign": "off", |
| 85 | + "no-plusplus": "off", |
| 86 | + "no-restricted-syntax": "off", |
| 87 | + "no-shadow": "off", |
| 88 | + "no-unused-expressions": "off", |
| 89 | + "no-use-before-define": "off", |
| 90 | + "no-var": "off", |
| 91 | + "nonblock-statement-body-position": "off", |
| 92 | + "object-curly-newline": "off", |
| 93 | + "operator-linebreak": "off", |
| 94 | + "prefer-template": "off", |
| 95 | + "semi": "off", |
| 96 | + "space-before-function-paren": "off", |
| 97 | + "wrap-regex": "off", |
| 98 | + }, |
| 99 | + }, |
| 100 | + { |
| 101 | + "files": "test/**", // test files from node core |
| 102 | + "rules": { |
| 103 | + "array-bracket-spacing": "off", |
| 104 | + "arrow-parens": "off", |
| 105 | + "comma-dangle": "off", |
| 106 | + "consistent-return": "off", |
| 107 | + "curly": "off", |
| 108 | + "default-param-last": "off", |
| 109 | + "eqeqeq": "off", |
| 110 | + "function-call-argument-newline": "off", |
| 111 | + "function-paren-newline": "off", |
| 112 | + "global-require": "off", |
| 113 | + "indent": "off", |
| 114 | + "keyword-spacing": "off", |
| 115 | + "lines-around-directive": "off", |
| 116 | + "max-lines-per-function": "off", |
| 117 | + "new-cap": "off", |
| 118 | + "no-else-return": "off", |
| 119 | + "no-eval": "off", |
| 120 | + "operator-linebreak": ["error", "after"], |
| 121 | + "no-extra-parens": "off", |
| 122 | + "no-inner-declarations": "off", |
| 123 | + "no-invalid-this": "off", |
| 124 | + "no-lone-blocks": "off", |
| 125 | + "no-multi-spaces": "off", |
| 126 | + "no-multiple-empty-lines": "off", |
| 127 | + "no-new-func": "off", |
| 128 | + "no-new-wrappers": "off", |
| 129 | + "no-param-reassign": "off", |
| 130 | + "no-plusplus": "off", |
| 131 | + "no-prototype-builtins": "off", |
| 132 | + "no-shadow": "off", |
| 133 | + "no-sparse-arrays": "off", |
| 134 | + "no-undef": "off", |
| 135 | + "no-underscore-dangle": "off", |
| 136 | + "no-use-before-define": "off", |
| 137 | + "no-var": "off", |
| 138 | + "nonblock-statement-body-position": "off", |
| 139 | + "object-curly-spacing": "off", |
| 140 | + "object-shorthand": "off", |
| 141 | + "prefer-arrow-callback": "off", |
| 142 | + "prefer-destructuring": "off", |
| 143 | + "prefer-promise-reject-errors": "off", |
| 144 | + "prefer-rest-params": "off", |
| 145 | + "prefer-template": "off", |
| 146 | + "quote-props": "off", |
| 147 | + "space-before-function-paren": "off", |
| 148 | + "strict": "off", |
| 149 | + "wrap-iife": "off", |
| 150 | + "wrap-regex": "off", |
| 151 | + }, |
| 152 | + }, |
| 153 | + ], |
| 154 | +} |
0 commit comments