Skip to content

Commit 4ccd1c9

Browse files
authored
release: v1.19.0 (#519)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Boshen <[email protected]>
1 parent 16279e3 commit 4ccd1c9

File tree

6 files changed

+74
-41
lines changed

6 files changed

+74
-41
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.18.0",
3+
"version": "1.19.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.18.0",
72+
"oxlint": "^1.19.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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ exports[`contains all the oxlint rules 1`] = `
375375
"import/no-named-default": [
376376
0,
377377
],
378+
"import/no-named-export": [
379+
0,
380+
],
378381
"import/no-namespace": [
379382
0,
380383
],
@@ -1195,6 +1198,9 @@ exports[`contains all the oxlint rules 1`] = `
11951198
"promise/no-callback-in-promise": [
11961199
0,
11971200
],
1201+
"promise/no-multiple-resolved": [
1202+
0,
1203+
],
11981204
"promise/no-nesting": [
11991205
0,
12001206
],
@@ -1298,6 +1304,9 @@ exports[`contains all the oxlint rules 1`] = `
12981304
"react/jsx-no-useless-fragment": [
12991305
0,
13001306
],
1307+
"react/jsx-pascal-case": [
1308+
0,
1309+
],
13011310
"react/jsx-props-no-spread-multi": [
13021311
0,
13031312
],
@@ -1445,6 +1454,9 @@ exports[`contains all the oxlint rules 1`] = `
14451454
"unicorn/no-anonymous-default-export": [
14461455
0,
14471456
],
1457+
"unicorn/no-array-callback-reference": [
1458+
0,
1459+
],
14481460
"unicorn/no-array-for-each": [
14491461
0,
14501462
],
@@ -1457,6 +1469,9 @@ exports[`contains all the oxlint rules 1`] = `
14571469
"unicorn/no-array-reverse": [
14581470
0,
14591471
],
1472+
"unicorn/no-array-sort": [
1473+
0,
1474+
],
14601475
"unicorn/no-await-expression-member": [
14611476
0,
14621477
],
@@ -1860,6 +1875,9 @@ exports[`contains all the oxlint rules 1`] = `
18601875
"vue/define-props-declaration": [
18611876
0,
18621877
],
1878+
"vue/max-props": [
1879+
0,
1880+
],
18631881
"vue/no-multiple-slot-args": [
18641882
0,
18651883
],

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ exports[`handleCategoriesScope > custom plugins, default categories > customPlug
6262
"no-unsafe-finally": "off",
6363
"no-unsafe-negation": "off",
6464
"no-unsafe-optional-chaining": "off",
65+
"no-unused-expressions": "off",
6566
"no-unused-labels": "off",
6667
"no-unused-private-class-members": "off",
6768
"no-unused-vars": "off",
@@ -100,6 +101,7 @@ exports[`handleCategoriesScope > default plugins (react, unicorn, typescript), d
100101
"@typescript-eslint/no-this-alias": "off",
101102
"@typescript-eslint/no-unnecessary-parameter-property-assignment": "off",
102103
"@typescript-eslint/no-unsafe-declaration-merging": "off",
104+
"@typescript-eslint/no-unused-expressions": "off",
103105
"@typescript-eslint/no-unused-vars": "off",
104106
"@typescript-eslint/no-useless-empty-export": "off",
105107
"@typescript-eslint/no-wrapper-object-types": "off",
@@ -145,6 +147,7 @@ exports[`handleCategoriesScope > default plugins (react, unicorn, typescript), d
145147
"no-unsafe-finally": "off",
146148
"no-unsafe-negation": "off",
147149
"no-unsafe-optional-chaining": "off",
150+
"no-unused-expressions": "off",
148151
"no-unused-labels": "off",
149152
"no-unused-private-class-members": "off",
150153
"no-unused-vars": "off",

src/generated/rules-by-category.ts

Lines changed: 8 additions & 2 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-array-callback-reference': 'off',
5253
'unicorn/no-unnecessary-array-flat-depth': 'off',
5354
'unicorn/no-unnecessary-slice-end': 'off',
5455
'unicorn/no-hex-escape': 'off',
@@ -136,6 +137,7 @@ const styleRules: Record<string, 'off'> = {
136137
'import/exports-last': 'off',
137138
'import/first': 'off',
138139
'import/group-exports': 'off',
140+
'import/no-named-export': 'off',
139141
'import/no-anonymous-default-export': 'off',
140142
'import/no-mutable-exports': 'off',
141143
'import/no-named-default': 'off',
@@ -188,6 +190,7 @@ const styleRules: Record<string, 'off'> = {
188190
'promise/prefer-catch': 'off',
189191
'promise/prefer-await-to-callbacks': 'off',
190192
'promise/prefer-await-to-then': 'off',
193+
'react/jsx-pascal-case': 'off',
191194
'react/jsx-fragments': 'off',
192195
'react/jsx-boolean-value': 'off',
193196
'react/jsx-curly-brace-presence': 'off',
@@ -296,6 +299,7 @@ const suspiciousRules: Record<string, 'off'> = {
296299
'jest/no-commented-out-tests': 'off',
297300
'promise/always-return': 'off',
298301
'promise/no-promise-in-callback': 'off',
302+
'promise/no-multiple-resolved': 'off',
299303
'react/iframe-missing-sandbox': 'off',
300304
'react/jsx-no-comment-textnodes': 'off',
301305
'react/jsx-no-script-url': 'off',
@@ -306,6 +310,7 @@ const suspiciousRules: Record<string, 'off'> = {
306310
'@typescript-eslint/no-extraneous-class': 'off',
307311
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
308312
'unicorn/consistent-function-scoping': 'off',
313+
'unicorn/no-array-sort': 'off',
309314
'unicorn/no-array-reverse': 'off',
310315
'unicorn/no-instanceof-builtins': 'off',
311316
'unicorn/no-accessor-recursion': 'off',
@@ -333,7 +338,6 @@ const restrictionRules: Record<string, 'off'> = {
333338
'no-regex-spaces': 'off',
334339
'no-restricted-globals': 'off',
335340
'no-undefined': 'off',
336-
'no-unused-expressions': 'off',
337341
'no-var': 'off',
338342
'no-void': 'off',
339343
'unicode-bom': 'off',
@@ -379,11 +383,11 @@ const restrictionRules: Record<string, 'off'> = {
379383
'unicorn/prefer-modern-math-apis': 'off',
380384
'unicorn/prefer-node-protocol': 'off',
381385
'unicorn/prefer-number-properties': 'off',
386+
'vue/max-props': 'off',
382387
'vue/no-multiple-slot-args': 'off',
383388
'@typescript-eslint/class-methods-use-this': 'off',
384389
'@typescript-eslint/no-restricted-imports': 'off',
385390
'@typescript-eslint/no-empty-function': 'off',
386-
'@typescript-eslint/no-unused-expressions': 'off',
387391
};
388392

389393
const correctnessRules: Record<string, 'off'> = {
@@ -428,6 +432,7 @@ const correctnessRules: Record<string, 'off'> = {
428432
'no-unsafe-finally': 'off',
429433
'no-unsafe-negation': 'off',
430434
'no-unsafe-optional-chaining': 'off',
435+
'no-unused-expressions': 'off',
431436
'no-unused-labels': 'off',
432437
'no-unused-private-class-members': 'off',
433438
'no-unused-vars': 'off',
@@ -556,6 +561,7 @@ const correctnessRules: Record<string, 'off'> = {
556561
'vue/valid-define-props': 'off',
557562
'@typescript-eslint/no-dupe-class-members': 'off',
558563
'@typescript-eslint/no-loss-of-precision': 'off',
564+
'@typescript-eslint/no-unused-expressions': 'off',
559565
'@typescript-eslint/no-unused-vars': 'off',
560566
'vitest/expect-expect': 'off',
561567
'vitest/no-conditional-expect': 'off',

src/generated/rules-by-scope.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ const importRules: Record<string, 'off'> = {
159159
'import/extensions': 'off',
160160
'import/first': 'off',
161161
'import/group-exports': 'off',
162+
'import/no-named-export': 'off',
162163
'import/no-unassigned-import': 'off',
163164
'import/no-empty-named-blocks': 'off',
164165
'import/no-anonymous-default-export': 'off',
@@ -325,6 +326,7 @@ const promiseRules: Record<string, 'off'> = {
325326
'promise/no-nesting': 'off',
326327
'promise/no-promise-in-callback': 'off',
327328
'promise/no-callback-in-promise': 'off',
329+
'promise/no-multiple-resolved': 'off',
328330
'promise/no-new-statics': 'off',
329331
'promise/param-names': 'off',
330332
'promise/prefer-catch': 'off',
@@ -340,6 +342,7 @@ const reactRules: Record<string, 'off'> = {
340342
'react/forbid-elements': 'off',
341343
'react/forward-ref-uses-ref': 'off',
342344
'react/iframe-missing-sandbox': 'off',
345+
'react/jsx-pascal-case': 'off',
343346
'react/jsx-fragments': 'off',
344347
'react/jsx-filename-extension': 'off',
345348
'react/jsx-boolean-value': 'off',
@@ -458,6 +461,8 @@ const unicornRules: Record<string, 'off'> = {
458461
'unicorn/explicit-length-check': 'off',
459462
'unicorn/filename-case': 'off',
460463
'unicorn/new-for-builtins': 'off',
464+
'unicorn/no-array-callback-reference': 'off',
465+
'unicorn/no-array-sort': 'off',
461466
'unicorn/no-array-reverse': 'off',
462467
'unicorn/no-instanceof-builtins': 'off',
463468
'unicorn/no-array-method-this-argument': 'off',
@@ -600,6 +605,7 @@ const vitestRules: Record<string, 'off'> = {
600605
const vueRules: Record<string, 'off'> = {
601606
'vue/define-emits-declaration': 'off',
602607
'vue/define-props-declaration': 'off',
608+
'vue/max-props': 'off',
603609
'vue/no-multiple-slot-args': 'off',
604610
'vue/no-required-prop-with-default': 'off',
605611
'vue/require-typed-ref': 'off',

0 commit comments

Comments
 (0)