| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | { |
| 2 | "root": true, |
| 3 | |
| 4 | "extends": "@ljharb", |
| 5 | |
| 6 | "env": { |
| 7 | "es6": true, |
| 8 | }, |
| 9 | |
| 10 | "rules": { |
| 11 | "array-bracket-newline": 0, |
| 12 | "array-element-newline": 0, |
| 13 | "complexity": 0, |
| 14 | "eqeqeq": [2, "allow-null"], |
| 15 | "func-name-matching": 0, |
| 16 | "id-length": [2, { "min": 1, "max": 40 }], |
| 17 | "max-params": [2, 4], |
| 18 | "max-statements-per-line": [2, { "max": 2 }], |
| 19 | "multiline-comment-style": 0, |
| 20 | "no-magic-numbers": 0, |
| 21 | "new-cap": 0, |
| 22 | "no-extra-parens": 1, |
| 23 | "operator-linebreak": [2, "before"], |
| 24 | "sort-keys": 0, |
| 25 | }, |
| 26 | |
| 27 | "overrides": [ |
| 28 | { |
| 29 | "files": "GetIntrinsic.js", |
| 30 | "rules": { |
| 31 | "max-statements": 0, |
| 32 | } |
| 33 | }, |
| 34 | { |
| 35 | "files": "operations/*", |
| 36 | "rules": { |
| 37 | "max-lines": 0, |
| 38 | }, |
| 39 | }, |
| 40 | { |
| 41 | "files": [ |
| 42 | "operations/deltas.js", |
| 43 | "operations/getOps.js", |
| 44 | "operations/spackle.js", |
| 45 | "operations/years.js", |
| 46 | ], |
| 47 | "extends": "@ljharb/eslint-config/node/latest", |
| 48 | "rules": { |
| 49 | "func-style": 0, |
| 50 | "max-lines-per-function": 0, |
| 51 | "max-nested-callbacks": 0, |
| 52 | "no-throw-literal": 0, |
| 53 | }, |
| 54 | }, |
| 55 | { |
| 56 | "files": "test/**", |
| 57 | "extends": "@ljharb/eslint-config/tests", |
| 58 | "rules": { |
| 59 | "id-length": 0, |
| 60 | "max-lines-per-function": 0, |
| 61 | "no-implicit-coercion": 0, |
| 62 | "no-invalid-this": 1, |
| 63 | }, |
| 64 | }, |
| 65 | ], |
| 66 | } |