|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + |
| 4 | + "extends": "@ljharb", |
| 5 | + |
| 6 | + "globals": { |
| 7 | + "Uint8Array": "readonly", |
| 8 | + "Uint16Array": "readonly", |
| 9 | + "Uint32Array": "readonly", |
| 10 | + "Int8Array": "readonly", |
| 11 | + "Int16Array": "readonly", |
| 12 | + "Int32Array": "readonly", |
| 13 | + "Float32Array": "readonly", |
| 14 | + "Float64Array": "readonly", |
| 15 | + "BigInt64Array": "readonly", |
| 16 | + "BigUint64Array": "readonly", |
| 17 | + }, |
| 18 | + |
| 19 | + "rules": { |
| 20 | + "consistent-return": "warn", |
| 21 | + "curly": "warn", |
| 22 | + "dot-notation": [2, { "allowKeywords": true, "allowPattern": "throws" }], |
| 23 | + "func-style": "warn", |
| 24 | + "function-paren-newline": "warn", |
| 25 | + "id-denylist": "warn", |
| 26 | + "indent": ["error", 2], |
| 27 | + "max-params": "warn", |
| 28 | + "max-statements-per-line": "warn", |
| 29 | + "multiline-comment-style": "off", |
| 30 | + "no-else-return": "warn", |
| 31 | + "no-extra-parens": "warn", |
| 32 | + "no-param-reassign": "warn", |
| 33 | + "no-use-before-define": "warn", |
| 34 | + "semi": ["error", "never"], |
| 35 | + "sort-keys": "warn", |
| 36 | + "space-before-function-paren": "warn", |
| 37 | + "strict": "warn", |
| 38 | + }, |
| 39 | + |
| 40 | + "ignorePatterns": [ |
| 41 | + "test/bundle.js", |
| 42 | + ], |
| 43 | + |
| 44 | + "overrides": [ |
| 45 | + { |
| 46 | + "files": "bench/*", |
| 47 | + "extends": "@ljharb/eslint-config/node/4", |
| 48 | + "rules": { |
| 49 | + "curly": "warn", |
| 50 | + "func-style": "warn", |
| 51 | + "indent": ["error", 2], |
| 52 | + "max-params": "warn", |
| 53 | + "no-extra-parens": "warn", |
| 54 | + "no-mixed-operators": "warn", |
| 55 | + "no-param-reassign": "warn", |
| 56 | + "no-use-before-define": "warn", |
| 57 | + "no-var": "off", |
| 58 | + "prefer-arrow-callback": "off", |
| 59 | + "prefer-template": "off", |
| 60 | + "semi": ["error", "never"], |
| 61 | + "space-before-function-paren": "warn", |
| 62 | + "strict": "warn", |
| 63 | + }, |
| 64 | + }, |
| 65 | + ], |
| 66 | +} |
0 commit comments