Skip to content

Commit b4562e3

Browse files
oxc-botBoshen
andauthored
release: v0.15.4 (#293)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Boshen <[email protected]>
1 parent 75eda50 commit b4562e3

File tree

5 files changed

+86
-49
lines changed

5 files changed

+86
-49
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": "0.15.3",
3+
"version": "0.15.4",
44
"description": "Turn off all rules already supported by oxlint",
55
"type": "module",
66
"types": "./dist/index.d.ts",
@@ -66,7 +66,7 @@
6666
"husky": "^9.1.6",
6767
"lint-staged": "^15.2.10",
6868
"memfs": "^4.14.0",
69-
"oxlint": "^0.15.3",
69+
"oxlint": "^0.15.4",
7070
"prettier": "^3.3.3",
7171
"scule": "^1.3.0",
7272
"shelljs": "^0.8.5",

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: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,6 @@ exports[`contains all the oxlint rules 1`] = `
256256
"import/max-dependencies": [
257257
0,
258258
],
259-
"import/named": [
260-
0,
261-
],
262259
"import/namespace": [
263260
0,
264261
],
@@ -565,6 +562,9 @@ exports[`contains all the oxlint rules 1`] = `
565562
"jsx-a11y/no-distracting-elements": [
566563
0,
567564
],
565+
"jsx-a11y/no-noninteractive-tabindex": [
566+
0,
567+
],
568568
"jsx-a11y/no-redundant-roles": [
569569
0,
570570
],
@@ -731,6 +731,9 @@ exports[`contains all the oxlint rules 1`] = `
731731
0,
732732
{},
733733
],
734+
"no-extra-label": [
735+
0,
736+
],
734737
"no-fallthrough": [
735738
0,
736739
{
@@ -777,15 +780,34 @@ exports[`contains all the oxlint rules 1`] = `
777780
"no-label-var": [
778781
0,
779782
],
783+
"no-labels": [
784+
0,
785+
{
786+
"allowLoop": false,
787+
"allowSwitch": false,
788+
},
789+
],
780790
"no-loss-of-precision": [
781791
0,
782792
],
783793
"no-magic-numbers": [
784794
0,
785795
],
796+
"no-multi-assign": [
797+
0,
798+
{
799+
"ignoreNonDeclaration": false,
800+
},
801+
],
786802
"no-multi-str": [
787803
0,
788804
],
805+
"no-negated-condition": [
806+
0,
807+
],
808+
"no-nested-ternary": [
809+
0,
810+
],
789811
"no-new": [
790812
0,
791813
],
@@ -954,6 +976,9 @@ exports[`contains all the oxlint rules 1`] = `
954976
"prefer-object-has-own": [
955977
0,
956978
],
979+
"prefer-rest-params": [
980+
0,
981+
],
957982
"prefer-spread": [
958983
0,
959984
],
@@ -1216,9 +1241,6 @@ exports[`contains all the oxlint rules 1`] = `
12161241
"unicorn/no-magic-array-flat-depth": [
12171242
0,
12181243
],
1219-
"unicorn/no-negated-condition": [
1220-
0,
1221-
],
12221244
"unicorn/no-negation-in-equality-check": [
12231245
0,
12241246
],
@@ -1427,6 +1449,9 @@ exports[`contains all the oxlint rules 1`] = `
14271449
"requireStringLiterals": false,
14281450
},
14291451
],
1452+
"vars-on-top": [
1453+
0,
1454+
],
14301455
"vitest/consistent-test-it": [
14311456
0,
14321457
],

src/generated/rules-by-category.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const pedanticRules = {
1111
'no-else-return': 'off',
1212
'no-fallthrough': 'off',
1313
'no-inner-declarations': 'off',
14+
'no-negated-condition': 'off',
1415
'no-new-wrappers': 'off',
1516
'no-object-constructor': 'off',
1617
'no-prototype-builtins': 'off',
@@ -48,7 +49,6 @@ const pedanticRules = {
4849
'unicorn/no-hex-escape': 'off',
4950
'unicorn/no-instanceof-array': 'off',
5051
'unicorn/no-lonely-if': 'off',
51-
'unicorn/no-negated-condition': 'off',
5252
'unicorn/no-negation-in-equality-check': 'off',
5353
'unicorn/no-new-buffer': 'off',
5454
'unicorn/no-object-as-default-parameter': 'off',
@@ -151,9 +151,13 @@ const styleRules = {
151151
'max-params': 'off',
152152
'no-continue': 'off',
153153
'no-duplicate-imports': 'off',
154+
'no-extra-label': 'off',
154155
'no-label-var': 'off',
156+
'no-labels': 'off',
155157
'no-magic-numbers': 'off',
158+
'no-multi-assign': 'off',
156159
'no-multi-str': 'off',
160+
'no-nested-ternary': 'off',
157161
'no-new-func': 'off',
158162
'no-return-assign': 'off',
159163
'no-script-url': 'off',
@@ -162,9 +166,11 @@ const styleRules = {
162166
'prefer-exponentiation-operator': 'off',
163167
'prefer-numeric-literals': 'off',
164168
'prefer-object-has-own': 'off',
169+
'prefer-rest-params': 'off',
165170
'prefer-spread': 'off',
166171
'sort-imports': 'off',
167172
'sort-keys': 'off',
173+
'vars-on-top': 'off',
168174
yoda: 'off',
169175
'import/first': 'off',
170176
'import/no-named-default': 'off',
@@ -319,7 +325,6 @@ const correctnessRules = {
319325
'use-isnan': 'off',
320326
'valid-typeof': 'off',
321327
'import/default': 'off',
322-
'import/named': 'off',
323328
'import/namespace': 'off',
324329
'jest/expect-expect': 'off',
325330
'jest/no-conditional-expect': 'off',
@@ -361,6 +366,7 @@ const correctnessRules = {
361366
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
362367
'jsx-a11y/no-autofocus': 'off',
363368
'jsx-a11y/no-distracting-elements': 'off',
369+
'jsx-a11y/no-noninteractive-tabindex': 'off',
364370
'jsx-a11y/no-redundant-roles': 'off',
365371
'jsx-a11y/prefer-tag-over-role': 'off',
366372
'jsx-a11y/role-has-required-aria-props': 'off',

src/generated/rules-by-scope.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ const eslintRules = {
4848
'no-ex-assign': 'off',
4949
'no-extend-native': 'off',
5050
'no-extra-boolean-cast': 'off',
51+
'no-extra-label': 'off',
5152
'no-fallthrough': 'off',
5253
'no-func-assign': 'off',
5354
'no-global-assign': 'off',
@@ -57,9 +58,13 @@ const eslintRules = {
5758
'no-irregular-whitespace': 'off',
5859
'no-iterator': 'off',
5960
'no-label-var': 'off',
61+
'no-labels': 'off',
6062
'no-loss-of-precision': 'off',
6163
'no-magic-numbers': 'off',
64+
'no-multi-assign': 'off',
6265
'no-multi-str': 'off',
66+
'no-negated-condition': 'off',
67+
'no-nested-ternary': 'off',
6368
'no-new': 'off',
6469
'no-new-func': 'off',
6570
'no-new-native-nonconstructor': 'off',
@@ -104,6 +109,7 @@ const eslintRules = {
104109
'prefer-exponentiation-operator': 'off',
105110
'prefer-numeric-literals': 'off',
106111
'prefer-object-has-own': 'off',
112+
'prefer-rest-params': 'off',
107113
'prefer-spread': 'off',
108114
radix: 'off',
109115
'require-await': 'off',
@@ -115,14 +121,14 @@ const eslintRules = {
115121
'unicode-bom': 'off',
116122
'use-isnan': 'off',
117123
'valid-typeof': 'off',
124+
'vars-on-top': 'off',
118125
yoda: 'off',
119126
} as const;
120127

121128
const importRules = {
122129
'import/default': 'off',
123130
'import/first': 'off',
124131
'import/max-dependencies': 'off',
125-
'import/named': 'off',
126132
'import/namespace': 'off',
127133
'import/no-amd': 'off',
128134
'import/no-commonjs': 'off',
@@ -234,6 +240,7 @@ const jsxA11yRules = {
234240
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
235241
'jsx-a11y/no-autofocus': 'off',
236242
'jsx-a11y/no-distracting-elements': 'off',
243+
'jsx-a11y/no-noninteractive-tabindex': 'off',
237244
'jsx-a11y/no-redundant-roles': 'off',
238245
'jsx-a11y/prefer-tag-over-role': 'off',
239246
'jsx-a11y/role-has-required-aria-props': 'off',
@@ -407,7 +414,6 @@ const unicornRules = {
407414
'unicorn/no-length-as-slice-end': 'off',
408415
'unicorn/no-lonely-if': 'off',
409416
'unicorn/no-magic-array-flat-depth': 'off',
410-
'unicorn/no-negated-condition': 'off',
411417
'unicorn/no-negation-in-equality-check': 'off',
412418
'unicorn/no-nested-ternary': 'off',
413419
'unicorn/no-new-array': 'off',

0 commit comments

Comments
 (0)