Skip to content

Instantly share code, notes, and snippets.

@wwqrd
Created October 16, 2024 12:41
Show Gist options
  • Save wwqrd/7a2b9a2e4cbf63638c22e4a72c4a657e to your computer and use it in GitHub Desktop.
Save wwqrd/7a2b9a2e4cbf63638c22e4a72c4a657e to your computer and use it in GitHub Desktop.
component rule change
10a11,16
> "@typescript-eslint/array-type": [
> 2
> ],
> "@typescript-eslint/await-thenable": [
> 2
> ],
16a23,25
> "@typescript-eslint/ban-tslint-comment": [
> 2
> ],
19a29,31
> "@typescript-eslint/block-spacing": [
> 0
> ],
25a38,40
> "@typescript-eslint/class-literal-property-style": [
> 2
> ],
31a47,62
> "@typescript-eslint/consistent-generic-constructors": [
> 2
> ],
> "@typescript-eslint/consistent-indexed-object-style": [
> 2
> ],
> "@typescript-eslint/consistent-type-assertions": [
> 2
> ],
> "@typescript-eslint/consistent-type-definitions": [
> 2,
> "type"
> ],
> "@typescript-eslint/dot-notation": [
> 2
> ],
40a72,74
> "@typescript-eslint/key-spacing": [
> 0
> ],
43a78,80
> "@typescript-eslint/lines-around-comment": [
> 0
> ],
49a87,101
> "@typescript-eslint/no-array-delete": [
> 2
> ],
> "@typescript-eslint/no-base-to-string": [
> 2
> ],
> "@typescript-eslint/no-confusing-non-null-assertion": [
> 2
> ],
> "@typescript-eslint/no-duplicate-enum-values": [
> 2
> ],
> "@typescript-eslint/no-duplicate-type-constituents": [
> 2
> ],
53c105
< "@typescript-eslint/no-empty-interface": [
---
> "@typescript-eslint/no-empty-object-type": [
68c120
< "@typescript-eslint/no-inferrable-types": [
---
> "@typescript-eslint/no-floating-promises": [
71c123
< "@typescript-eslint/no-loss-of-precision": [
---
> "@typescript-eslint/no-for-in-array": [
73a126,131
> "@typescript-eslint/no-implied-eval": [
> 2
> ],
> "@typescript-eslint/no-inferrable-types": [
> 2
> ],
76a135,137
> "@typescript-eslint/no-misused-promises": [
> 2
> ],
83,85d143
< "@typescript-eslint/no-non-null-assertion": [
< 1
< ],
88a147,152
> "@typescript-eslint/no-redundant-type-constituents": [
> 2
> ],
> "@typescript-eslint/no-require-imports": [
> 2
> ],
91a156,158
> "@typescript-eslint/no-unnecessary-type-assertion": [
> 2
> ],
92a160,162
> 2
> ],
> "@typescript-eslint/no-unsafe-argument": [
94a165,191
> "@typescript-eslint/no-unsafe-assignment": [
> 2
> ],
> "@typescript-eslint/no-unsafe-call": [
> 2
> ],
> "@typescript-eslint/no-unsafe-declaration-merging": [
> 2
> ],
> "@typescript-eslint/no-unsafe-enum-comparison": [
> 2
> ],
> "@typescript-eslint/no-unsafe-function-type": [
> 2
> ],
> "@typescript-eslint/no-unsafe-member-access": [
> 2
> ],
> "@typescript-eslint/no-unsafe-return": [
> 2
> ],
> "@typescript-eslint/no-unsafe-unary-minus": [
> 2
> ],
> "@typescript-eslint/no-unused-expressions": [
> 2
> ],
96c193
< 1
---
> 2
100a198,203
> "@typescript-eslint/no-wrapper-object-types": [
> 2
> ],
> "@typescript-eslint/non-nullable-type-assertion-style": [
> 2
> ],
103a207,209
> "@typescript-eslint/only-throw-error": [
> 2
> ],
106a213,224
> "@typescript-eslint/prefer-find": [
> 2
> ],
> "@typescript-eslint/prefer-for-of": [
> 2
> ],
> "@typescript-eslint/prefer-function-type": [
> 2
> ],
> "@typescript-eslint/prefer-includes": [
> 2
> ],
109a228,242
> "@typescript-eslint/prefer-nullish-coalescing": [
> 2
> ],
> "@typescript-eslint/prefer-optional-chain": [
> 2
> ],
> "@typescript-eslint/prefer-promise-reject-errors": [
> 2
> ],
> "@typescript-eslint/prefer-regexp-exec": [
> 2
> ],
> "@typescript-eslint/prefer-string-starts-ends-with": [
> 2
> ],
112a246,254
> "@typescript-eslint/require-await": [
> 2
> ],
> "@typescript-eslint/restrict-plus-operands": [
> 2
> ],
> "@typescript-eslint/restrict-template-expressions": [
> 2
> ],
130a273,275
> "@typescript-eslint/unbound-method": [
> 2
> ],
184a330,332
> "dot-notation": [
> 0
> ],
220a369,371
> "for-direction": [
> 2
> ],
265a417,419
> "max-statements-per-line": [
> 0
> ],
280a435,443
> "no-async-promise-executor": [
> 2
> ],
> "no-case-declarations": [
> 2
> ],
> "no-class-assign": [
> 2
> ],
283a447,452
> "no-compare-neg-zero": [
> 2
> ],
> "no-cond-assign": [
> 2
> ],
289a459,473
> "no-constant-binary-expression": [
> 2
> ],
> "no-constant-condition": [
> 2
> ],
> "no-control-regex": [
> 2
> ],
> "no-debugger": [
> 2
> ],
> "no-delete-var": [
> 2
> ],
295a480,482
> "no-dupe-else-if": [
> 2
> ],
298a486,488
> "no-duplicate-case": [
> 2
> ],
301a492,497
> "no-empty": [
> 2
> ],
> "no-empty-character-class": [
> 2
> ],
304a501,512
> "no-empty-pattern": [
> 2
> ],
> "no-empty-static-block": [
> 2
> ],
> "no-ex-assign": [
> 2
> ],
> "no-extra-boolean-cast": [
> 2
> ],
310a519,521
> "no-fallthrough": [
> 2
> ],
316a528,533
> "no-global-assign": [
> 2
> ],
> "no-implied-eval": [
> 0
> ],
319a537,542
> "no-invalid-regexp": [
> 2
> ],
> "no-irregular-whitespace": [
> 2
> ],
321c544
< 0
---
> 2
322a546,548
> "no-misleading-character-class": [
> 2
> ],
332a559,561
> 0
> ],
> "no-new-native-nonconstructor": [
337a567,569
> "no-nonoctal-decimal-escape": [
> 2
> ],
340a573,578
> "no-octal": [
> 2
> ],
> "no-prototype-builtins": [
> 2
> ],
343a582,584
> "no-regex-spaces": [
> 2
> ],
346a588,590
> "no-self-assign": [
> 2
> ],
349a594,596
> "no-shadow-restricted-names": [
> 2
> ],
355a603,605
> "no-sparse-arrays": [
> 2
> ],
361a612,614
> "no-throw-literal": [
> 0
> ],
373a627,629
> "no-unsafe-finally": [
> 2
> ],
376a633,644
> "no-unsafe-optional-chaining": [
> 2
> ],
> "no-unused-expressions": [
> 0
> ],
> "no-unused-labels": [
> 2
> ],
> "no-unused-private-class-members": [
> 2
> ],
378a647,649
> ],
> "no-useless-backreference": [
> 2
379a651,656
> "no-useless-catch": [
> 2
> ],
> "no-useless-escape": [
> 2
> ],
385a663,665
> "no-with": [
> 2
> ],
415a696,698
> "prefer-promise-reject-errors": [
> 0
> ],
431,436d713
< "react-hooks/exhaustive-deps": [
< 1
< ],
< "react-hooks/rules-of-hooks": [
< 2
< ],
550a828,833
> "require-await": [
> 0
> ],
> "require-yield": [
> 2
> ],
617,619d899
< "unicode-bom": [
< 0
< ],
629c909
< "valid-typeof": [
---
> "unicorn/template-indent": [
631a912,917
> "use-isnan": [
> 2
> ],
> "valid-typeof": [
> 2
> ],
637a924,926
> "vue/array-element-newline": [
> 0
> ],
```
Rule changes for tests:
```diff
> "@typescript-eslint/array-type": [
> 2
> ],
> "@typescript-eslint/await-thenable": [
> 2
> ],
16a23,25
> "@typescript-eslint/ban-tslint-comment": [
> 2
> ],
19a29,31
> "@typescript-eslint/block-spacing": [
> 0
> ],
25a38,40
> "@typescript-eslint/class-literal-property-style": [
> 2
> ],
31a47,62
> "@typescript-eslint/consistent-generic-constructors": [
> 2
> ],
> "@typescript-eslint/consistent-indexed-object-style": [
> 2
> ],
> "@typescript-eslint/consistent-type-assertions": [
> 2
> ],
> "@typescript-eslint/consistent-type-definitions": [
> 2,
> "type"
> ],
> "@typescript-eslint/dot-notation": [
> 2
> ],
40a72,74
> "@typescript-eslint/key-spacing": [
> 0
> ],
43a78,80
> "@typescript-eslint/lines-around-comment": [
> 0
> ],
49a87,101
> "@typescript-eslint/no-array-delete": [
> 2
> ],
> "@typescript-eslint/no-base-to-string": [
> 2
> ],
> "@typescript-eslint/no-confusing-non-null-assertion": [
> 2
> ],
> "@typescript-eslint/no-duplicate-enum-values": [
> 2
> ],
> "@typescript-eslint/no-duplicate-type-constituents": [
> 2
> ],
53c105
< "@typescript-eslint/no-empty-interface": [
---
> "@typescript-eslint/no-empty-object-type": [
68c120
< "@typescript-eslint/no-inferrable-types": [
---
> "@typescript-eslint/no-floating-promises": [
71c123
< "@typescript-eslint/no-loss-of-precision": [
---
> "@typescript-eslint/no-for-in-array": [
73a126,131
> "@typescript-eslint/no-implied-eval": [
> 2
> ],
> "@typescript-eslint/no-inferrable-types": [
> 2
> ],
76a135,137
> "@typescript-eslint/no-misused-promises": [
> 2
> ],
83,85d143
< "@typescript-eslint/no-non-null-assertion": [
< 1
< ],
88a147,152
> "@typescript-eslint/no-redundant-type-constituents": [
> 2
> ],
> "@typescript-eslint/no-require-imports": [
> 0
> ],
91a156,158
> "@typescript-eslint/no-unnecessary-type-assertion": [
> 2
> ],
92a160,189
> 2
> ],
> "@typescript-eslint/no-unsafe-argument": [
> 0
> ],
> "@typescript-eslint/no-unsafe-assignment": [
> 0
> ],
> "@typescript-eslint/no-unsafe-call": [
> 0
> ],
> "@typescript-eslint/no-unsafe-declaration-merging": [
> 2
> ],
> "@typescript-eslint/no-unsafe-enum-comparison": [
> 2
> ],
> "@typescript-eslint/no-unsafe-function-type": [
> 2
> ],
> "@typescript-eslint/no-unsafe-member-access": [
> 0
> ],
> "@typescript-eslint/no-unsafe-return": [
> 0
> ],
> "@typescript-eslint/no-unsafe-unary-minus": [
> 2
> ],
> "@typescript-eslint/no-unused-expressions": [
96c193
< 1
---
> 2
100a198,203
> "@typescript-eslint/no-wrapper-object-types": [
> 2
> ],
> "@typescript-eslint/non-nullable-type-assertion-style": [
> 2
> ],
103a207,209
> "@typescript-eslint/only-throw-error": [
> 2
> ],
106a213,224
> "@typescript-eslint/prefer-find": [
> 2
> ],
> "@typescript-eslint/prefer-for-of": [
> 2
> ],
> "@typescript-eslint/prefer-function-type": [
> 2
> ],
> "@typescript-eslint/prefer-includes": [
> 2
> ],
109a228,242
> "@typescript-eslint/prefer-nullish-coalescing": [
> 2
> ],
> "@typescript-eslint/prefer-optional-chain": [
> 2
> ],
> "@typescript-eslint/prefer-promise-reject-errors": [
> 2
> ],
> "@typescript-eslint/prefer-regexp-exec": [
> 2
> ],
> "@typescript-eslint/prefer-string-starts-ends-with": [
> 2
> ],
112a246,254
> "@typescript-eslint/require-await": [
> 2
> ],
> "@typescript-eslint/restrict-plus-operands": [
> 2
> ],
> "@typescript-eslint/restrict-template-expressions": [
> 2
> ],
130a273,275
> "@typescript-eslint/unbound-method": [
> 0
> ],
182a328,330
> 0
> ],
> "dot-notation": [
220a369,371
> "for-direction": [
> 2
> ],
248c399,408
< "jest-dom/prefer-checked": [
---
> "jest/expect-expect": [
> 1
> ],
> "jest/no-alias-methods": [
> 1
> ],
> "jest/no-commented-out-tests": [
> 1
> ],
> "jest/no-conditional-expect": [
251c411
< "jest-dom/prefer-empty": [
---
> "jest/no-deprecated-functions": [
254c414,417
< "jest-dom/prefer-enabled-disabled": [
---
> "jest/no-disabled-tests": [
> 1
> ],
> "jest/no-done-callback": [
257c420
< "jest-dom/prefer-focus": [
---
> "jest/no-export": [
260c423
< "jest-dom/prefer-in-document": [
---
> "jest/no-focused-tests": [
263c426
< "jest-dom/prefer-required": [
---
> "jest/no-identical-title": [
266c429
< "jest-dom/prefer-to-have-attribute": [
---
> "jest/no-interpolation-in-snapshots": [
269c432
< "jest-dom/prefer-to-have-class": [
---
> "jest/no-jasmine-globals": [
272c435
< "jest-dom/prefer-to-have-style": [
---
> "jest/no-mocks-import": [
275c438
< "jest-dom/prefer-to-have-text-content": [
---
> "jest/no-standalone-expect": [
278c441
< "jest-dom/prefer-to-have-value": [
---
> "jest/no-test-prefixes": [
280a444,455
> "jest/valid-describe-callback": [
> 2
> ],
> "jest/valid-expect": [
> 2
> ],
> "jest/valid-expect-in-promise": [
> 2
> ],
> "jest/valid-title": [
> 2
> ],
298a474,476
> "max-statements-per-line": [
> 0
> ],
313a492,500
> "no-async-promise-executor": [
> 2
> ],
> "no-case-declarations": [
> 2
> ],
> "no-class-assign": [
> 2
> ],
316a504,509
> "no-compare-neg-zero": [
> 2
> ],
> "no-cond-assign": [
> 2
> ],
322a516,530
> "no-constant-binary-expression": [
> 2
> ],
> "no-constant-condition": [
> 2
> ],
> "no-control-regex": [
> 2
> ],
> "no-debugger": [
> 2
> ],
> "no-delete-var": [
> 2
> ],
328a537,539
> "no-dupe-else-if": [
> 2
> ],
331a543,545
> "no-duplicate-case": [
> 2
> ],
334a549,554
> "no-empty": [
> 2
> ],
> "no-empty-character-class": [
> 2
> ],
337a558,569
> "no-empty-pattern": [
> 2
> ],
> "no-empty-static-block": [
> 2
> ],
> "no-ex-assign": [
> 2
> ],
> "no-extra-boolean-cast": [
> 2
> ],
343a576,578
> "no-fallthrough": [
> 2
> ],
349a585,590
> "no-global-assign": [
> 2
> ],
> "no-implied-eval": [
> 0
> ],
352a594,599
> "no-invalid-regexp": [
> 2
> ],
> "no-irregular-whitespace": [
> 2
> ],
354c601
< 0
---
> 2
355a603,605
> "no-misleading-character-class": [
> 2
> ],
367a618,620
> "no-new-native-nonconstructor": [
> 0
> ],
370a624,626
> "no-nonoctal-decimal-escape": [
> 2
> ],
373a630,635
> "no-octal": [
> 2
> ],
> "no-prototype-builtins": [
> 2
> ],
376a639,641
> "no-regex-spaces": [
> 2
> ],
379a645,647
> "no-self-assign": [
> 2
> ],
382a651,653
> "no-shadow-restricted-names": [
> 2
> ],
388a660,662
> "no-sparse-arrays": [
> 2
> ],
394a669,671
> "no-throw-literal": [
> 0
> ],
406a684,686
> "no-unsafe-finally": [
> 2
> ],
407a688,693
> 0
> ],
> "no-unsafe-optional-chaining": [
> 2
> ],
> "no-unused-expressions": [
409a696,701
> "no-unused-labels": [
> 2
> ],
> "no-unused-private-class-members": [
> 2
> ],
412a705,713
> "no-useless-backreference": [
> 2
> ],
> "no-useless-catch": [
> 2
> ],
> "no-useless-escape": [
> 2
> ],
418a720,722
> "no-with": [
> 2
> ],
448a753,755
> "prefer-promise-reject-errors": [
> 0
> ],
464,469d770
< "react-hooks/exhaustive-deps": [
< 1
< ],
< "react-hooks/rules-of-hooks": [
< 2
< ],
583a885,890
> "require-await": [
> 0
> ],
> "require-yield": [
> 2
> ],
648,708d954
< 0
< ],
< "testing-library/await-async-query": [
< 2
< ],
< "testing-library/await-async-utils": [
< 2
< ],
< "testing-library/no-await-sync-query": [
< 2
< ],
< "testing-library/no-container": [
< 2
< ],
< "testing-library/no-debugging-utils": [
< 2
< ],
< "testing-library/no-dom-import": [
< 2,
< "react"
< ],
< "testing-library/no-node-access": [
< 2
< ],
< "testing-library/no-promise-in-fire-event": [
< 2
< ],
< "testing-library/no-render-in-setup": [
< 2
< ],
< "testing-library/no-unnecessary-act": [
< 2
< ],
< "testing-library/no-wait-for-empty-callback": [
< 2
< ],
< "testing-library/no-wait-for-multiple-assertions": [
< 2
< ],
< "testing-library/no-wait-for-side-effects": [
< 2
< ],
< "testing-library/no-wait-for-snapshot": [
< 2
< ],
< "testing-library/prefer-find-by": [
< 2
< ],
< "testing-library/prefer-presence-queries": [
< 2
< ],
< "testing-library/prefer-query-by-disappearance": [
< 2
< ],
< "testing-library/prefer-screen-queries": [
< 2
< ],
< "testing-library/render-result-naming-convention": [
< 2
< ],
< "unicode-bom": [
720c966
< "valid-typeof": [
---
> "unicorn/template-indent": [
722a969,974
> "use-isnan": [
> 2
> ],
> "valid-typeof": [
> 2
> ],
728a981,983
> "vue/array-element-newline": [
> 0
> ],
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment