Skip to content

Commit 78910e2

Browse files
oxc-botBoshen
andauthored
release: v0.15.12 (#341)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Boshen <Boshen@users.noreply.github.com>
1 parent e36b213 commit 78910e2

File tree

6 files changed

+79
-40
lines changed

6 files changed

+79
-40
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-oxlint",
3-
"version": "0.15.11",
3+
"version": "0.15.12",
44
"description": "Turn off all rules already supported by oxlint",
55
"type": "module",
66
"types": "./dist/index.d.ts",
@@ -67,7 +67,7 @@
6767
"jiti": "^2.4.2",
6868
"lint-staged": "^15.2.10",
6969
"memfs": "^4.14.0",
70-
"oxlint": "^0.15.11",
70+
"oxlint": "^0.15.12",
7171
"prettier": "^3.3.3",
7272
"scule": "^1.3.0",
7373
"shelljs": "^0.8.5",

pnpm-lock.yaml

+37-37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/__snapshots__/configs.spec.ts.snap

+22
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ exports[`contains all the oxlint rules 1`] = `
255255
"overrides": {},
256256
},
257257
],
258+
"grouped-accessor-pairs": [
259+
0,
260+
"anyOrder",
261+
],
258262
"guard-for-in": [
259263
0,
260264
],
@@ -603,9 +607,18 @@ exports[`contains all the oxlint rules 1`] = `
603607
"max-classes-per-file": [
604608
0,
605609
],
610+
"max-depth": [
611+
0,
612+
],
606613
"max-lines": [
607614
0,
608615
],
616+
"max-lines-per-function": [
617+
0,
618+
],
619+
"max-nested-callbacks": [
620+
0,
621+
],
609622
"max-params": [
610623
0,
611624
],
@@ -938,6 +951,12 @@ exports[`contains all the oxlint rules 1`] = `
938951
"no-unexpected-multiline": [
939952
0,
940953
],
954+
"no-unneeded-ternary": [
955+
0,
956+
{
957+
"defaultAssignment": true,
958+
},
959+
],
941960
"no-unsafe-finally": [
942961
0,
943962
],
@@ -1283,6 +1302,9 @@ exports[`contains all the oxlint rules 1`] = `
12831302
"unicorn/no-instanceof-array": [
12841303
0,
12851304
],
1305+
"unicorn/no-invalid-fetch-options": [
1306+
0,
1307+
],
12861308
"unicorn/no-invalid-remove-event-listener": [
12871309
0,
12881310
],

src/build-from-oxlint-config/__snapshots__/categories.spec.ts.snap

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ exports[`handleCategoriesScope > custom plugins, custom categories > customPlugi
99
"no-extend-native": "off",
1010
"no-new": "off",
1111
"no-unexpected-multiline": "off",
12+
"no-unneeded-ternary": "off",
1213
"no-useless-concat": "off",
1314
"no-useless-constructor": "off",
1415
}
@@ -35,6 +36,7 @@ exports[`handleCategoriesScope > custom plugins, default categories > customPlug
3536
"no-empty-character-class": "off",
3637
"no-empty-pattern": "off",
3738
"no-empty-static-block": "off",
39+
"no-eval": "off",
3840
"no-ex-assign": "off",
3941
"no-extra-boolean-cast": "off",
4042
"no-func-assign": "off",
@@ -65,6 +67,7 @@ exports[`handleCategoriesScope > custom plugins, default categories > customPlug
6567
"unicorn/no-await-in-promise-methods": "off",
6668
"unicorn/no-document-cookie": "off",
6769
"unicorn/no-empty-file": "off",
70+
"unicorn/no-invalid-fetch-options": "off",
6871
"unicorn/no-invalid-remove-event-listener": "off",
6972
"unicorn/no-new-array": "off",
7073
"unicorn/no-single-promise-in-promise-methods": "off",
@@ -114,6 +117,7 @@ exports[`handleCategoriesScope > default plugins (react, unicorn, typescript), d
114117
"no-empty-character-class": "off",
115118
"no-empty-pattern": "off",
116119
"no-empty-static-block": "off",
120+
"no-eval": "off",
117121
"no-ex-assign": "off",
118122
"no-extra-boolean-cast": "off",
119123
"no-func-assign": "off",
@@ -157,6 +161,7 @@ exports[`handleCategoriesScope > default plugins (react, unicorn, typescript), d
157161
"unicorn/no-await-in-promise-methods": "off",
158162
"unicorn/no-document-cookie": "off",
159163
"unicorn/no-empty-file": "off",
164+
"unicorn/no-invalid-fetch-options": "off",
160165
"unicorn/no-invalid-remove-event-listener": "off",
161166
"unicorn/no-new-array": "off",
162167
"unicorn/no-single-promise-in-promise-methods": "off",

src/generated/rules-by-category.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
const pedanticRules: Record<string, 'off'> = {
44
'array-callback-return': 'off',
55
eqeqeq: 'off',
6+
'max-nested-callbacks': 'off',
7+
'max-lines-per-function': 'off',
68
'max-classes-per-file': 'off',
9+
'max-depth': 'off',
710
'max-lines': 'off',
811
'no-object-constructor': 'off',
912
'no-array-constructor': 'off',
@@ -91,7 +94,6 @@ const restrictionRules: Record<string, 'off'> = {
9194
'no-empty-function': 'off',
9295
'no-empty': 'off',
9396
'no-eq-null': 'off',
94-
'no-eval': 'off',
9597
'no-iterator': 'off',
9698
'no-plusplus': 'off',
9799
'no-proto': 'off',
@@ -149,6 +151,7 @@ const styleRules: Record<string, 'off'> = {
149151
'default-param-last': 'off',
150152
'func-style': 'off',
151153
'func-names': 'off',
154+
'grouped-accessor-pairs': 'off',
152155
'guard-for-in': 'off',
153156
'init-declarations': 'off',
154157
'max-params': 'off',
@@ -322,6 +325,7 @@ const correctnessRules: Record<string, 'off'> = {
322325
'no-empty-character-class': 'off',
323326
'no-empty-pattern': 'off',
324327
'no-empty-static-block': 'off',
328+
'no-eval': 'off',
325329
'no-ex-assign': 'off',
326330
'no-extra-boolean-cast': 'off',
327331
'no-func-assign': 'off',
@@ -446,6 +450,7 @@ const correctnessRules: Record<string, 'off'> = {
446450
'@typescript-eslint/no-wrapper-object-types': 'off',
447451
'@typescript-eslint/prefer-as-const': 'off',
448452
'@typescript-eslint/triple-slash-reference': 'off',
453+
'unicorn/no-invalid-fetch-options': 'off',
449454
'unicorn/no-await-in-promise-methods': 'off',
450455
'unicorn/no-document-cookie': 'off',
451456
'unicorn/no-empty-file': 'off',
@@ -486,6 +491,7 @@ const perfRules: Record<string, 'off'> = {
486491
};
487492

488493
const suspiciousRules: Record<string, 'off'> = {
494+
'no-unneeded-ternary': 'off',
489495
'no-extend-native': 'off',
490496
'no-new': 'off',
491497
'no-unexpected-multiline': 'off',

src/generated/rules-by-scope.ts

+6
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@ const eslintRules: Record<string, 'off'> = {
99
'for-direction': 'off',
1010
'func-style': 'off',
1111
'func-names': 'off',
12+
'grouped-accessor-pairs': 'off',
1213
'guard-for-in': 'off',
1314
'init-declarations': 'off',
15+
'max-nested-callbacks': 'off',
16+
'max-lines-per-function': 'off',
1417
'max-classes-per-file': 'off',
18+
'max-depth': 'off',
1519
'max-lines': 'off',
1620
'max-params': 'off',
1721
'new-cap': 'off',
1822
'no-useless-call': 'off',
23+
'no-unneeded-ternary': 'off',
1924
'no-extra-label': 'off',
2025
'no-multi-assign': 'off',
2126
'no-nested-ternary': 'off',
@@ -408,6 +413,7 @@ const unicornRules: Record<string, 'off'> = {
408413
'unicorn/explicit-length-check': 'off',
409414
'unicorn/filename-case': 'off',
410415
'unicorn/new-for-builtins': 'off',
416+
'unicorn/no-invalid-fetch-options': 'off',
411417
'unicorn/no-abusive-eslint-disable': 'off',
412418
'unicorn/no-anonymous-default-export': 'off',
413419
'unicorn/no-array-for-each': 'off',

0 commit comments

Comments
 (0)