|
| 1 | +{ |
| 2 | + "ignores": [ |
| 3 | + "*.config.js", |
| 4 | + "test/fixtures" |
| 5 | + ], |
| 6 | + "rules": { |
| 7 | + "@typescript-eslint/ban-types": "off", |
| 8 | + "@typescript-eslint/brace-style": [ |
| 9 | + "error", |
| 10 | + "stroustrup" |
| 11 | + ], |
| 12 | + "@typescript-eslint/class-literal-property-style": [ |
| 13 | + "error", |
| 14 | + "fields" |
| 15 | + ], |
| 16 | + "@typescript-eslint/keyword-spacing": [ |
| 17 | + "error", |
| 18 | + { |
| 19 | + "overrides": { |
| 20 | + "if": { |
| 21 | + "after": false |
| 22 | + }, |
| 23 | + "for": { |
| 24 | + "after": false |
| 25 | + }, |
| 26 | + "switch": { |
| 27 | + "after": false |
| 28 | + }, |
| 29 | + "while": { |
| 30 | + "after": false |
| 31 | + } |
| 32 | + } |
| 33 | + } |
| 34 | + ], |
| 35 | + "@typescript-eslint/member-ordering": [ |
| 36 | + "error", |
| 37 | + { |
| 38 | + "default": [ |
| 39 | + "field", |
| 40 | + "constructor", |
| 41 | + "get", |
| 42 | + "set", |
| 43 | + "method" |
| 44 | + ] |
| 45 | + } |
| 46 | + ], |
| 47 | + "@typescript-eslint/naming-convention": [ |
| 48 | + "error", |
| 49 | + { |
| 50 | + "selector": "variable", |
| 51 | + "modifiers": [ |
| 52 | + "const", |
| 53 | + "global" |
| 54 | + ], |
| 55 | + "format": [ |
| 56 | + "camelCase", |
| 57 | + "UPPER_CASE" |
| 58 | + ] |
| 59 | + }, |
| 60 | + { |
| 61 | + "selector": "variable", |
| 62 | + "format": [ |
| 63 | + "camelCase" |
| 64 | + ] |
| 65 | + } |
| 66 | + ], |
| 67 | + "@typescript-eslint/no-confusing-void-expression": "off", |
| 68 | + "@typescript-eslint/no-dynamic-delete": "off", |
| 69 | + "@typescript-eslint/no-inferrable-types": "off", |
| 70 | + "@typescript-eslint/no-namespace": "off", |
| 71 | + "@typescript-eslint/object-curly-spacing": [ |
| 72 | + "error", |
| 73 | + "always" |
| 74 | + ], |
| 75 | + "arrow-parens": [ |
| 76 | + "error", |
| 77 | + "always" |
| 78 | + ], |
| 79 | + "capitalized-comments": "off", |
| 80 | + "complexity": "off", |
| 81 | + "default-case": "off", |
| 82 | + "import/extensions": [ |
| 83 | + "error", |
| 84 | + "never" |
| 85 | + ], |
| 86 | + "import/order": [ |
| 87 | + "error", |
| 88 | + { |
| 89 | + "groups": [ |
| 90 | + "builtin", |
| 91 | + "external", |
| 92 | + "internal", |
| 93 | + "parent", |
| 94 | + "sibling", |
| 95 | + "index", |
| 96 | + "object" |
| 97 | + ], |
| 98 | + "alphabetize": { |
| 99 | + "order": "asc", |
| 100 | + "caseInsensitive": true |
| 101 | + } |
| 102 | + } |
| 103 | + ], |
| 104 | + "max-depth": [ |
| 105 | + "error", |
| 106 | + 8 |
| 107 | + ], |
| 108 | + "max-params": [ |
| 109 | + "error", |
| 110 | + 12 |
| 111 | + ], |
| 112 | + "no-await-in-loop": "off", |
| 113 | + "no-else-return": "off", |
| 114 | + "no-lonely-if": "off", |
| 115 | + "no-negated-condition": "off", |
| 116 | + "one-var": [ |
| 117 | + "error", |
| 118 | + "never" |
| 119 | + ], |
| 120 | + "unicorn/empty-brace-spaces": "off", |
| 121 | + "unicorn/no-array-callback-reference": "off", |
| 122 | + "unicorn/no-object-as-default-parameter": "off", |
| 123 | + "unicorn/prefer-json-parse-buffer": "off", |
| 124 | + "unicorn/prefer-module": "off", |
| 125 | + "unicorn/prefer-node-protocol": "off", |
| 126 | + "unicorn/prefer-switch": "off", |
| 127 | + "unicorn/prefer-ternary": "off", |
| 128 | + "unicorn/prevent-abbreviations": [ |
| 129 | + "error", |
| 130 | + { |
| 131 | + "replacements": { |
| 132 | + "args": false, |
| 133 | + "err": false, |
| 134 | + "func": false, |
| 135 | + "pkg": false |
| 136 | + } |
| 137 | + } |
| 138 | + ] |
| 139 | + }, |
| 140 | + "plugins": [ |
| 141 | + "chai-friendly" |
| 142 | + ], |
| 143 | + "overrides": [ |
| 144 | + { |
| 145 | + "files": "**/*.test.ts", |
| 146 | + "rules": { |
| 147 | + "@typescript-eslint/no-unused-expressions": "off", |
| 148 | + "chai-friendly/no-unused-expressions": "error" |
| 149 | + } |
| 150 | + } |
| 151 | + ] |
| 152 | +} |
0 commit comments