Skip to content

Commit f5a5e38

Browse files
committed
feat: disable eslint conflicting rules
1 parent 5f8ca63 commit f5a5e38

File tree

2 files changed

+382
-2
lines changed

2 files changed

+382
-2
lines changed

Diff for: src/eslint.ts

+380-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ESLint } from "eslint";
1+
import type { ESLint, Linter } from "eslint";
22

33
export const mergeResults = (
44
results: ESLint.LintResult[],
@@ -40,3 +40,382 @@ export const mergeResults = (
4040

4141
return mergedResults;
4242
};
43+
44+
export const overrideConfig: Linter.Config<Linter.RulesRecord>[] = [
45+
{
46+
rules: {
47+
// The following rules can be used in some cases. See the README for more
48+
// information. These are marked with `0` instead of `"off"` so that a
49+
// script can distinguish them. Note that there are a few more of these
50+
// in the deprecated section below.
51+
curly: "off",
52+
"no-unexpected-multiline": "off",
53+
"@typescript-eslint/lines-around-comment": "off",
54+
"@typescript-eslint/quotes": "off",
55+
"babel/quotes": "off",
56+
"unicorn/template-indent": "off",
57+
"vue/html-self-closing": "off",
58+
"vue/max-len": "off",
59+
60+
// The rest are rules that you never need to enable when using Prettier.
61+
"@babel/object-curly-spacing": "off",
62+
"@babel/semi": "off",
63+
"@typescript-eslint/block-spacing": "off",
64+
"@typescript-eslint/brace-style": "off",
65+
"@typescript-eslint/comma-dangle": "off",
66+
"@typescript-eslint/comma-spacing": "off",
67+
"@typescript-eslint/func-call-spacing": "off",
68+
"@typescript-eslint/indent": "off",
69+
"@typescript-eslint/key-spacing": "off",
70+
"@typescript-eslint/keyword-spacing": "off",
71+
"@typescript-eslint/member-delimiter-style": "off",
72+
"@typescript-eslint/no-extra-parens": "off",
73+
"@typescript-eslint/no-extra-semi": "off",
74+
"@typescript-eslint/object-curly-spacing": "off",
75+
"@typescript-eslint/semi": "off",
76+
"@typescript-eslint/space-before-blocks": "off",
77+
"@typescript-eslint/space-before-function-paren": "off",
78+
"@typescript-eslint/space-infix-ops": "off",
79+
"@typescript-eslint/type-annotation-spacing": "off",
80+
"babel/object-curly-spacing": "off",
81+
"babel/semi": "off",
82+
"flowtype/boolean-style": "off",
83+
"flowtype/delimiter-dangle": "off",
84+
"flowtype/generic-spacing": "off",
85+
"flowtype/object-type-curly-spacing": "off",
86+
"flowtype/object-type-delimiter": "off",
87+
"flowtype/quotes": "off",
88+
"flowtype/semi": "off",
89+
"flowtype/space-after-type-colon": "off",
90+
"flowtype/space-before-generic-bracket": "off",
91+
"flowtype/space-before-type-colon": "off",
92+
"flowtype/union-intersection-spacing": "off",
93+
"react/jsx-child-element-spacing": "off",
94+
"react/jsx-closing-bracket-location": "off",
95+
"react/jsx-closing-tag-location": "off",
96+
"react/jsx-curly-newline": "off",
97+
"react/jsx-curly-spacing": "off",
98+
"react/jsx-equals-spacing": "off",
99+
"react/jsx-first-prop-new-line": "off",
100+
"react/jsx-indent": "off",
101+
"react/jsx-indent-props": "off",
102+
"react/jsx-max-props-per-line": "off",
103+
"react/jsx-newline": "off",
104+
"react/jsx-one-expression-per-line": "off",
105+
"react/jsx-props-no-multi-spaces": "off",
106+
"react/jsx-tag-spacing": "off",
107+
"react/jsx-wrap-multilines": "off",
108+
"standard/array-bracket-even-spacing": "off",
109+
"standard/computed-property-even-spacing": "off",
110+
"standard/object-curly-even-spacing": "off",
111+
"unicorn/empty-brace-spaces": "off",
112+
"unicorn/no-nested-ternary": "off",
113+
"unicorn/number-literal-case": "off",
114+
"vue/array-bracket-newline": "off",
115+
"vue/array-bracket-spacing": "off",
116+
"vue/array-element-newline": "off",
117+
"vue/arrow-spacing": "off",
118+
"vue/block-spacing": "off",
119+
"vue/block-tag-newline": "off",
120+
"vue/brace-style": "off",
121+
"vue/comma-dangle": "off",
122+
"vue/comma-spacing": "off",
123+
"vue/comma-style": "off",
124+
"vue/dot-location": "off",
125+
"vue/func-call-spacing": "off",
126+
"vue/html-closing-bracket-newline": "off",
127+
"vue/html-closing-bracket-spacing": "off",
128+
"vue/html-end-tags": "off",
129+
"vue/html-indent": "off",
130+
"vue/html-quotes": "off",
131+
"vue/key-spacing": "off",
132+
"vue/keyword-spacing": "off",
133+
"vue/max-attributes-per-line": "off",
134+
"vue/multiline-html-element-content-newline": "off",
135+
"vue/multiline-ternary": "off",
136+
"vue/mustache-interpolation-spacing": "off",
137+
"vue/no-extra-parens": "off",
138+
"vue/no-multi-spaces": "off",
139+
"vue/no-spaces-around-equal-signs-in-attribute": "off",
140+
"vue/object-curly-newline": "off",
141+
"vue/object-curly-spacing": "off",
142+
"vue/object-property-newline": "off",
143+
"vue/operator-linebreak": "off",
144+
"vue/quote-props": "off",
145+
"vue/script-indent": "off",
146+
"vue/singleline-html-element-content-newline": "off",
147+
"vue/space-in-parens": "off",
148+
"vue/space-infix-ops": "off",
149+
"vue/space-unary-ops": "off",
150+
"vue/template-curly-spacing": "off",
151+
152+
// Removed in version 0.10.0.
153+
// https://eslint.org/docs/latest/rules/space-unary-word-ops
154+
"space-unary-word-ops": "off",
155+
156+
// Removed in version 1.0.0.
157+
// https://github.com/eslint/eslint/issues/1898
158+
"generator-star": "off",
159+
"no-comma-dangle": "off",
160+
"no-reserved-keys": "off",
161+
"no-space-before-semi": "off",
162+
"no-wrap-func": "off",
163+
"space-after-function-name": "off",
164+
"space-before-function-parentheses": "off",
165+
"space-in-brackets": "off",
166+
167+
// Removed in version 2.0.0.
168+
// https://github.com/eslint/eslint/issues/5032
169+
"no-arrow-condition": "off",
170+
"space-after-keywords": "off",
171+
"space-before-keywords": "off",
172+
"space-return-throw-case": "off",
173+
174+
// Deprecated since version 3.3.0.
175+
// https://eslint.org/docs/rules/no-spaced-func
176+
"no-spaced-func": "off",
177+
178+
// Deprecated since version 4.0.0.
179+
// https://github.com/eslint/eslint/pull/8286
180+
"indent-legacy": "off",
181+
182+
// Deprecated since version 8.53.0.
183+
// https://eslint.org/blog/2023/10/deprecating-formatting-rules/
184+
"array-bracket-newline": "off",
185+
"array-bracket-spacing": "off",
186+
"array-element-newline": "off",
187+
"arrow-parens": "off",
188+
"arrow-spacing": "off",
189+
"block-spacing": "off",
190+
"brace-style": "off",
191+
"comma-dangle": "off",
192+
"comma-spacing": "off",
193+
"comma-style": "off",
194+
"computed-property-spacing": "off",
195+
"dot-location": "off",
196+
"eol-last": "off",
197+
"func-call-spacing": "off",
198+
"function-call-argument-newline": "off",
199+
"function-paren-newline": "off",
200+
"generator-star-spacing": "off",
201+
"implicit-arrow-linebreak": "off",
202+
indent: "off",
203+
"jsx-quotes": "off",
204+
"key-spacing": "off",
205+
"keyword-spacing": "off",
206+
"linebreak-style": "off",
207+
"lines-around-comment": "off",
208+
"max-len": "off",
209+
"max-statements-per-line": "off",
210+
"multiline-ternary": "off",
211+
"new-parens": "off",
212+
"newline-per-chained-call": "off",
213+
"no-confusing-arrow": "off",
214+
"no-extra-parens": "off",
215+
"no-extra-semi": "off",
216+
"no-floating-decimal": "off",
217+
"no-mixed-operators": "off",
218+
"no-mixed-spaces-and-tabs": "off",
219+
"no-multi-spaces": "off",
220+
"no-multiple-empty-lines": "off",
221+
"no-tabs": "off",
222+
"no-trailing-spaces": "off",
223+
"no-whitespace-before-property": "off",
224+
"nonblock-statement-body-position": "off",
225+
"object-curly-newline": "off",
226+
"object-curly-spacing": "off",
227+
"object-property-newline": "off",
228+
"one-var-declaration-per-line": "off",
229+
"operator-linebreak": "off",
230+
"padded-blocks": "off",
231+
"quote-props": "off",
232+
quotes: "off",
233+
"rest-spread-spacing": "off",
234+
semi: "off",
235+
"semi-spacing": "off",
236+
"semi-style": "off",
237+
"space-before-blocks": "off",
238+
"space-before-function-paren": "off",
239+
"space-in-parens": "off",
240+
"space-infix-ops": "off",
241+
"space-unary-ops": "off",
242+
"switch-colon-spacing": "off",
243+
"template-curly-spacing": "off",
244+
"template-tag-spacing": "off",
245+
"wrap-iife": "off",
246+
"wrap-regex": "off",
247+
"yield-star-spacing": "off",
248+
249+
// Deprecated since version 7.0.0.
250+
// https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md#700---2017-05-06
251+
"react/jsx-space-before-closing": "off",
252+
253+
"constructor-super": "off",
254+
"default-case-last": "off",
255+
"default-param-last": "off",
256+
"dot-notation": "off",
257+
eqeqeq: "off",
258+
"for-direction": "off",
259+
"getter-return": "off",
260+
"no-async-promise-executor": "off",
261+
"no-case-declarations": "off",
262+
"no-class-assign": "off",
263+
"no-compare-neg-zero": "off",
264+
"no-cond-assign": "off",
265+
"no-const-assign": "off",
266+
"no-constant-condition": "off",
267+
"no-constructor-return": "off",
268+
"no-control-regex": "off",
269+
"no-debugger": "off",
270+
"no-delete-var": "off",
271+
"no-dupe-args": "off",
272+
"no-dupe-class-members": "off",
273+
"no-dupe-keys": "off",
274+
"no-duplicate-case": "off",
275+
"no-else-return": "off",
276+
"no-empty": "off",
277+
"no-empty-character-class": "off",
278+
"no-empty-pattern": "off",
279+
"no-eval": "off",
280+
"no-ex-assign": "off",
281+
"no-extra-boolean-cast": "off",
282+
"no-extra-label": "off",
283+
"no-fallthrough": "off",
284+
"no-func-assign": "off",
285+
"no-global-assign": "off",
286+
"no-import-assign": "off",
287+
"no-inner-declarations": "off",
288+
"no-label-var": "off",
289+
"no-labels": "off",
290+
"no-lone-blocks": "off",
291+
"no-loss-of-precision": "off",
292+
"no-misleading-character-class": "off",
293+
"no-new-native-nonconstructor": "off",
294+
"no-new-symbol": "off",
295+
"no-nonoctal-decimal-escape": "off",
296+
"no-obj-calls": "off",
297+
"no-param-reassign": "off",
298+
"no-prototype-builtins": "off",
299+
"no-redeclare": "off",
300+
"no-regex-spaces": "off",
301+
"no-return-assign": "off",
302+
"no-self-assign": "off",
303+
"no-self-compare": "off",
304+
"no-sequences": "off",
305+
"no-setter-return": "off",
306+
"no-shadow-restricted-names": "off",
307+
"no-sparse-array": "off",
308+
"no-this-before-super": "off",
309+
"no-unneeded-ternary": "off",
310+
"no-unreachable": "off",
311+
"no-unsafe-finally": "off",
312+
"no-unsafe-negation": "off",
313+
"no-unsafe-optional-chaining": "off",
314+
"no-unused-labels": "off",
315+
"no-use-before-define": "off",
316+
"no-useless-catch": "off",
317+
"no-useless-computed-key": "off",
318+
"no-useless-constructor": "off",
319+
"no-useless-rename": "off",
320+
"no-var": "off",
321+
"no-with": "off",
322+
"one-var": "off",
323+
"prefer-arrow-callback": "off",
324+
"prefer-const": "off",
325+
"prefer-exponentiation-operator": "off",
326+
"prefer-numeric-literals": "off",
327+
"prefer-regex-literals": "off",
328+
"prefer-rest-params": "off",
329+
"prefer-template": "off",
330+
"require-yield": "off",
331+
"use-isnan": "off",
332+
"valid-typeof": "off",
333+
"@mysticatea/eslint-plugin/no-this-in-static": "off",
334+
"@typescript-eslint/ban-types": "off",
335+
"@typescript-eslint/consistent-type-exports": "off",
336+
"@typescript-eslint/consistent-type-imports": "off",
337+
"@typescript-eslint/default-param-last": "off",
338+
"@typescript-eslint/dot-notation": "off",
339+
"@typescript-eslint/no-dupe-class-members": "off",
340+
"@typescript-eslint/no-empty-interface": "off",
341+
"@typescript-eslint/no-explicit-any": "off",
342+
"@typescript-eslint/no-extra-non-null-assertion": "off",
343+
"@typescript-eslint/no-extraneous-class": "off",
344+
"@typescript-eslint/no-import-type-side-effects": "off",
345+
"@typescript-eslint/no-inferrable-types": "off",
346+
"@typescript-eslint/no-invalid-void-type": "off",
347+
"@typescript-eslint/no-loss-of-precision": "off",
348+
"@typescript-eslint/no-misused-new": "off",
349+
"@typescript-eslint/no-non-null-assertion": "off",
350+
"@typescript-eslint/no-redeclare": "off",
351+
"@typescript-eslint/no-this-alias": "off",
352+
"@typescript-eslint/no-unnecessary-type-arguments": "off",
353+
"@typescript-eslint/no-unnecessary-type-constraint": "off",
354+
"@typescript-eslint/no-unsafe-declaration-merging": "off",
355+
"@typescript-eslint/no-use-before-define": "off",
356+
"@typescript-eslint/no-useless-constructor": "off",
357+
"@typescript-eslint/no-useless-empty-export": "off",
358+
"@typescript-eslint/no-useless-template-literals": "off",
359+
"@typescript-eslint/prefer-as-const": "off",
360+
"@typescript-eslint/prefer-enum-initializers": "off",
361+
"@typescript-eslint/prefer-function-type": "off",
362+
"@typescript-eslint/prefer-literal-enum-member": "off",
363+
"@typescript-eslint/prefer-namespace-keyword": "off",
364+
"@typescript-eslint/prefer-optional-chain": "off",
365+
"jest/max-nested-describe": "off",
366+
"jest/no-duplicate-hooks": "off",
367+
"jest/no-export": "off",
368+
"jest/no-focused-tests": "off",
369+
"jsx-a11y/alt-text": "off",
370+
"jsx-a11y/anchor-has-content": "off",
371+
"jsx-a11y/anchor-is-valid": "off",
372+
"jsx-a11y/aria-activedescendant-has-tabindex": "off",
373+
"jsx-a11y/aria-props": "off",
374+
"jsx-a11y/aria-proptypes": "off",
375+
"jsx-a11y/aria-role": "off",
376+
"jsx-a11y/aria-unsupported-elements": "off",
377+
"jsx-a11y/click-events-have-key-events": "off",
378+
"jsx-a11y/heading-has-content": "off",
379+
"jsx-a11y/html-has-lang": "off",
380+
"jsx-a11y/iframe-has-title": "off",
381+
"jsx-a11y/img-redundant-alt": "off",
382+
"jsx-a11y/lang": "off",
383+
"jsx-a11y/media-has-caption": "off",
384+
"jsx-a11y/mouse-events-have-key-events": "off",
385+
"jsx-a11y/no-access-key": "off",
386+
"jsx-a11y/no-aria-hidden-on-focusable": "off",
387+
"jsx-a11y/no-autofocus": "off",
388+
"jsx-a11y/no-distracting-elements": "off",
389+
"jsx-a11y/no-interactive-element-to-noninteractive-role": "off",
390+
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off",
391+
"jsx-a11y/no-noninteractive-tabindex": "off",
392+
"jsx-a11y/no-redundant-roles": "off",
393+
"jsx-a11y/role-has-required-aria-props": "off",
394+
"jsx-a11y/scope": "off",
395+
"jsx-a11y/tabindex-no-positive": "off",
396+
"react/button-has-type": "off",
397+
"react/jsx-key": "off",
398+
"react/jsx-no-comment-textnodes": "off",
399+
"react/jsx-no-duplicate-props": "off",
400+
"react/jsx-no-target-blank": "off",
401+
"react/jsx-no-useless-fragment": "off",
402+
"react/no-array-index-key": "off",
403+
"react/no-children-prop": "off",
404+
"react/no-danger": "off",
405+
"react/no-danger-with-children": "off",
406+
"react/void-dom-elements-no-children": "off",
407+
"react-hooks/exhaustive-deps": "off",
408+
"simple-import-sort/imports": "off",
409+
"stylistic/jsx-self-closing-comp": "off",
410+
"unicorn/no-array-for-each": "off",
411+
"unicorn/no-instanceof-array": "off",
412+
"unicorn/no-static-only-class": "off",
413+
"unicorn/no-thenable": "off",
414+
"unicorn/no-typeof-undefined": "off",
415+
"unicorn/no-useless-switch-case": "off",
416+
"unicorn/prefer-array-flat-map": "off",
417+
"unicorn/prefer-node-protocol": "off",
418+
"unicorn/prefer-number-properties": "off",
419+
},
420+
},
421+
];

0 commit comments

Comments
 (0)