[d565449] | 1 | {
|
---|
| 2 | "root": true,
|
---|
| 3 |
|
---|
| 4 | "extends": "@ljharb",
|
---|
| 5 |
|
---|
| 6 | "env": {
|
---|
| 7 | "es6": true,
|
---|
| 8 | },
|
---|
| 9 |
|
---|
| 10 | "rules": {
|
---|
| 11 | "array-bracket-newline": 0,
|
---|
| 12 | "complexity": 0,
|
---|
| 13 | "eqeqeq": [2, "allow-null"],
|
---|
| 14 | "func-name-matching": 0,
|
---|
| 15 | "id-length": [2, { "min": 1, "max": 40 }],
|
---|
| 16 | "max-params": [2, 5],
|
---|
| 17 | "max-lines-per-function": 1,
|
---|
| 18 | "max-statements": 1,
|
---|
| 19 | "max-statements-per-line": [2, { "max": 2 }],
|
---|
| 20 | "multiline-comment-style": 0,
|
---|
| 21 | "no-magic-numbers": 0,
|
---|
| 22 | "new-cap": 0,
|
---|
| 23 | "no-extra-parens": 1,
|
---|
| 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 | "complexity": 0,
|
---|
| 50 | "func-style": 0,
|
---|
| 51 | "max-lines-per-function": 0,
|
---|
| 52 | "max-nested-callbacks": 0,
|
---|
| 53 | "max-statements": 0,
|
---|
| 54 | "no-magic-numbers": 0,
|
---|
| 55 | "no-throw-literal": 0,
|
---|
| 56 | },
|
---|
| 57 | },
|
---|
| 58 | {
|
---|
| 59 | "files": "test/**",
|
---|
| 60 | "extends": "@ljharb/eslint-config/tests",
|
---|
| 61 | "rules": {
|
---|
| 62 | "max-len": 0,
|
---|
| 63 | "max-lines-per-function": 0,
|
---|
| 64 | "no-implicit-coercion": 0,
|
---|
| 65 | "no-invalid-this": 1,
|
---|
| 66 | "prefer-promise-reject-errors": 0,
|
---|
| 67 | },
|
---|
| 68 | },
|
---|
| 69 | {
|
---|
| 70 | "files": [
|
---|
| 71 | "*/Num*ToRawBytes.js",
|
---|
| 72 | "*/RawBytesToNum*.js",
|
---|
| 73 | "helpers/bytesAs*.js",
|
---|
| 74 | "helpers/valueToFloat*.js",
|
---|
| 75 | ],
|
---|
| 76 | "rules": {
|
---|
| 77 | "max-lines-per-function": "off",
|
---|
| 78 | "max-statements": "off",
|
---|
| 79 | "no-redeclare": "warn",
|
---|
| 80 | "operator-linebreak": [2, "before", {
|
---|
| 81 | "overrides": {
|
---|
| 82 | "=": "none"
|
---|
| 83 | }
|
---|
| 84 | }],
|
---|
| 85 | },
|
---|
| 86 | },
|
---|
| 87 | {
|
---|
| 88 | "files": "./*/GetSubstitution.js",
|
---|
| 89 | "rules": {
|
---|
| 90 | "max-depth": "off",
|
---|
| 91 | },
|
---|
| 92 | },
|
---|
| 93 | ],
|
---|
| 94 | }
|
---|