Skip to content

Commit 8a8bcf7

Browse files
authored
release: v1.20.0 (#524)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Boshen <[email protected]>
1 parent 855fd17 commit 8a8bcf7

File tree

5 files changed

+94
-39
lines changed

5 files changed

+94
-39
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-oxlint",
3-
"version": "1.19.0",
3+
"version": "1.20.0",
44
"description": "Turn off all rules already supported by oxlint",
55
"type": "module",
66
"types": "./dist/index.d.ts",
@@ -69,7 +69,7 @@
6969
"jiti": "^2.4.2",
7070
"lint-staged": "^16.0.0",
7171
"memfs": "^4.14.0",
72-
"oxlint": "^1.19.0",
72+
"oxlint": "^1.20.0",
7373
"oxlint-tsgolint": "^0.1.5",
7474
"prettier": "^3.3.3",
7575
"scule": "^1.3.0",

pnpm-lock.yaml

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/__snapshots__/configs.spec.ts.snap

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,9 @@ exports[`contains all the oxlint rules 1`] = `
977977
"no-object-constructor": [
978978
0,
979979
],
980+
"no-param-reassign": [
981+
0,
982+
],
980983
"no-plusplus": [
981984
0,
982985
{
@@ -1553,6 +1556,9 @@ exports[`contains all the oxlint rules 1`] = `
15531556
"unicorn/no-unnecessary-array-flat-depth": [
15541557
0,
15551558
],
1559+
"unicorn/no-unnecessary-array-splice-count": [
1560+
0,
1561+
],
15561562
"unicorn/no-unnecessary-await": [
15571563
0,
15581564
],
@@ -1565,6 +1571,9 @@ exports[`contains all the oxlint rules 1`] = `
15651571
"unicorn/no-unreadable-iife": [
15661572
0,
15671573
],
1574+
"unicorn/no-useless-error-capture-stack-trace": [
1575+
0,
1576+
],
15681577
"unicorn/no-useless-fallback-in-spread": [
15691578
0,
15701579
],
@@ -1610,9 +1619,18 @@ exports[`contains all the oxlint rules 1`] = `
16101619
"unicorn/prefer-array-some": [
16111620
0,
16121621
],
1622+
"unicorn/prefer-at": [
1623+
0,
1624+
],
16131625
"unicorn/prefer-blob-reading-methods": [
16141626
0,
16151627
],
1628+
"unicorn/prefer-class-fields": [
1629+
0,
1630+
],
1631+
"unicorn/prefer-classlist-toggle": [
1632+
0,
1633+
],
16161634
"unicorn/prefer-code-point": [
16171635
0,
16181636
],
@@ -1712,12 +1730,18 @@ exports[`contains all the oxlint rules 1`] = `
17121730
"unicorn/prefer-structured-clone": [
17131731
0,
17141732
],
1733+
"unicorn/prefer-top-level-await": [
1734+
0,
1735+
],
17151736
"unicorn/prefer-type-error": [
17161737
0,
17171738
],
17181739
"unicorn/require-array-join-separator": [
17191740
0,
17201741
],
1742+
"unicorn/require-module-specifiers": [
1743+
0,
1744+
],
17211745
"unicorn/require-number-to-fixed-digits-argument": [
17221746
0,
17231747
],
@@ -1875,15 +1899,24 @@ exports[`contains all the oxlint rules 1`] = `
18751899
"vue/define-props-declaration": [
18761900
0,
18771901
],
1902+
"vue/define-props-destructuring": [
1903+
0,
1904+
],
18781905
"vue/max-props": [
18791906
0,
18801907
],
1908+
"vue/no-export-in-script-setup": [
1909+
0,
1910+
],
18811911
"vue/no-multiple-slot-args": [
18821912
0,
18831913
],
18841914
"vue/no-required-prop-with-default": [
18851915
0,
18861916
],
1917+
"vue/prefer-import-from-vue": [
1918+
0,
1919+
],
18871920
"vue/require-typed-ref": [
18881921
0,
18891922
],

src/generated/rules-by-category.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const pedanticRules: Record<string, 'off'> = {
4949
'unicorn/escape-case': 'off',
5050
'unicorn/explicit-length-check': 'off',
5151
'unicorn/new-for-builtins': 'off',
52+
'unicorn/no-unnecessary-array-splice-count': 'off',
5253
'unicorn/no-array-callback-reference': 'off',
5354
'unicorn/no-unnecessary-array-flat-depth': 'off',
5455
'unicorn/no-unnecessary-slice-end': 'off',
@@ -65,6 +66,8 @@ const pedanticRules: Record<string, 'off'> = {
6566
'unicorn/no-useless-promise-resolve-reject': 'off',
6667
'unicorn/no-useless-switch-case': 'off',
6768
'unicorn/no-useless-undefined': 'off',
69+
'unicorn/prefer-top-level-await': 'off',
70+
'unicorn/prefer-at': 'off',
6871
'unicorn/prefer-array-flat': 'off',
6972
'unicorn/prefer-array-some': 'off',
7073
'unicorn/prefer-blob-reading-methods': 'off',
@@ -225,6 +228,8 @@ const styleRules: Record<string, 'off'> = {
225228
'unicorn/no-zero-fractions': 'off',
226229
'unicorn/number-literal-case': 'off',
227230
'unicorn/numeric-separators-style': 'off',
231+
'unicorn/prefer-classlist-toggle': 'off',
232+
'unicorn/prefer-class-fields': 'off',
228233
'unicorn/prefer-global-this': 'off',
229234
'unicorn/prefer-object-from-entries': 'off',
230235
'unicorn/prefer-array-index-of': 'off',
@@ -247,6 +252,7 @@ const styleRules: Record<string, 'off'> = {
247252
'vitest/prefer-to-be-falsy': 'off',
248253
'vitest/prefer-to-be-object': 'off',
249254
'vitest/prefer-to-be-truthy': 'off',
255+
'vue/define-props-destructuring': 'off',
250256
'vue/define-emits-declaration': 'off',
251257
'vue/define-props-declaration': 'off',
252258
'vue/require-typed-ref': 'off',
@@ -315,6 +321,7 @@ const suspiciousRules: Record<string, 'off'> = {
315321
'unicorn/no-instanceof-builtins': 'off',
316322
'unicorn/no-accessor-recursion': 'off',
317323
'unicorn/prefer-add-event-listener': 'off',
324+
'unicorn/require-module-specifiers': 'off',
318325
'unicorn/require-post-message-target-origin': 'off',
319326
'vue/no-required-prop-with-default': 'off',
320327
'@typescript-eslint/no-useless-constructor': 'off',
@@ -326,6 +333,7 @@ const restrictionRules: Record<string, 'off'> = {
326333
'default-case': 'off',
327334
'no-alert': 'off',
328335
'no-bitwise': 'off',
336+
'no-param-reassign': 'off',
329337
'no-restricted-imports': 'off',
330338
'no-console': 'off',
331339
'no-div-regex': 'off',
@@ -372,6 +380,7 @@ const restrictionRules: Record<string, 'off'> = {
372380
'@typescript-eslint/no-require-imports': 'off',
373381
'@typescript-eslint/no-var-requires': 'off',
374382
'@typescript-eslint/prefer-literal-enum-member': 'off',
383+
'unicorn/no-useless-error-capture-stack-trace': 'off',
375384
'unicorn/no-abusive-eslint-disable': 'off',
376385
'unicorn/no-anonymous-default-export': 'off',
377386
'unicorn/no-array-for-each': 'off',
@@ -557,6 +566,8 @@ const correctnessRules: Record<string, 'off'> = {
557566
'unicorn/prefer-string-starts-ends-with': 'off',
558567
'vitest/no-conditional-tests': 'off',
559568
'vitest/require-local-test-context-for-concurrent-snapshots': 'off',
569+
'vue/no-export-in-script-setup': 'off',
570+
'vue/prefer-import-from-vue': 'off',
560571
'vue/valid-define-emits': 'off',
561572
'vue/valid-define-props': 'off',
562573
'@typescript-eslint/no-dupe-class-members': 'off',

src/generated/rules-by-scope.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const eslintRules: Record<string, 'off'> = {
4343
'no-multi-assign': 'off',
4444
'no-nested-ternary': 'off',
4545
'no-object-constructor': 'off',
46+
'no-param-reassign': 'off',
4647
'no-restricted-imports': 'off',
4748
'no-unneeded-ternary': 'off',
4849
'no-useless-backreference': 'off',
@@ -461,7 +462,9 @@ const unicornRules: Record<string, 'off'> = {
461462
'unicorn/explicit-length-check': 'off',
462463
'unicorn/filename-case': 'off',
463464
'unicorn/new-for-builtins': 'off',
465+
'unicorn/no-unnecessary-array-splice-count': 'off',
464466
'unicorn/no-array-callback-reference': 'off',
467+
'unicorn/no-useless-error-capture-stack-trace': 'off',
465468
'unicorn/no-array-sort': 'off',
466469
'unicorn/no-array-reverse': 'off',
467470
'unicorn/no-instanceof-builtins': 'off',
@@ -509,6 +512,10 @@ const unicornRules: Record<string, 'off'> = {
509512
'unicorn/no-zero-fractions': 'off',
510513
'unicorn/number-literal-case': 'off',
511514
'unicorn/numeric-separators-style': 'off',
515+
'unicorn/prefer-classlist-toggle': 'off',
516+
'unicorn/prefer-class-fields': 'off',
517+
'unicorn/prefer-top-level-await': 'off',
518+
'unicorn/prefer-at': 'off',
512519
'unicorn/prefer-global-this': 'off',
513520
'unicorn/prefer-object-from-entries': 'off',
514521
'unicorn/prefer-array-find': 'off',
@@ -550,6 +557,7 @@ const unicornRules: Record<string, 'off'> = {
550557
'unicorn/prefer-string-trim-start-end': 'off',
551558
'unicorn/prefer-structured-clone': 'off',
552559
'unicorn/prefer-type-error': 'off',
560+
'unicorn/require-module-specifiers': 'off',
553561
'unicorn/require-post-message-target-origin': 'off',
554562
'unicorn/require-array-join-separator': 'off',
555563
'unicorn/require-number-to-fixed-digits-argument': 'off',
@@ -603,11 +611,14 @@ const vitestRules: Record<string, 'off'> = {
603611
};
604612

605613
const vueRules: Record<string, 'off'> = {
614+
'vue/define-props-destructuring': 'off',
606615
'vue/define-emits-declaration': 'off',
607616
'vue/define-props-declaration': 'off',
608617
'vue/max-props': 'off',
618+
'vue/no-export-in-script-setup': 'off',
609619
'vue/no-multiple-slot-args': 'off',
610620
'vue/no-required-prop-with-default': 'off',
621+
'vue/prefer-import-from-vue': 'off',
611622
'vue/require-typed-ref': 'off',
612623
'vue/valid-define-emits': 'off',
613624
'vue/valid-define-props': 'off',

0 commit comments

Comments
 (0)