Skip to content

Commit 4061461

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

File tree

7 files changed

+95
-78
lines changed

7 files changed

+95
-78
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.16.8",
3+
"version": "0.16.9",
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.16.8",
70+
"oxlint": "^0.16.9",
7171
"prettier": "^3.3.3",
7272
"scule": "^1.3.0",
7373
"shelljs": "^0.9.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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ exports[`contains all the oxlint rules 1`] = `
232232
"checkForEach": false,
233233
},
234234
],
235+
"block-scoped-var": [
236+
0,
237+
],
235238
"curly": [
236239
0,
237240
"all",
@@ -1157,6 +1160,9 @@ exports[`contains all the oxlint rules 1`] = `
11571160
"react/checked-requires-onchange-or-readonly": [
11581161
0,
11591162
],
1163+
"react/forward-ref-uses-ref": [
1164+
0,
1165+
],
11601166
"react/iframe-missing-sandbox": [
11611167
0,
11621168
],
@@ -1295,6 +1301,9 @@ exports[`contains all the oxlint rules 1`] = `
12951301
"unicorn/catch-error-name": [
12961302
0,
12971303
],
1304+
"unicorn/consistent-assert": [
1305+
0,
1306+
],
12981307
"unicorn/consistent-date-clone": [
12991308
0,
13001309
],

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
exports[`handleCategoriesScope > custom plugins, custom categories > customPluginCustomCategories 1`] = `
44
{
5+
"block-scoped-var": "off",
56
"import/no-absolute-path": "off",
67
"import/no-duplicates": "off",
78
"import/no-empty-named-blocks": "off",
@@ -146,6 +147,7 @@ exports[`handleCategoriesScope > default plugins (react, unicorn, typescript), d
146147
"no-useless-escape": "off",
147148
"no-useless-rename": "off",
148149
"no-with": "off",
150+
"react/forward-ref-uses-ref": "off",
149151
"react/jsx-key": "off",
150152
"react/jsx-no-duplicate-props": "off",
151153
"react/jsx-no-target-blank": "off",

src/generated/configs-by-category.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ const pedanticConfig = {
77
rules: rules.pedanticRules,
88
};
99

10+
const suspiciousConfig = {
11+
name: 'oxlint/suspicious',
12+
rules: rules.suspiciousRules,
13+
};
14+
1015
const styleConfig = {
1116
name: 'oxlint/style',
1217
rules: rules.styleRules,
@@ -27,18 +32,13 @@ const perfConfig = {
2732
rules: rules.perfRules,
2833
};
2934

30-
const suspiciousConfig = {
31-
name: 'oxlint/suspicious',
32-
rules: rules.suspiciousRules,
33-
};
34-
3535
const configByCategory = {
3636
'flat/pedantic': pedanticConfig,
37+
'flat/suspicious': suspiciousConfig,
3738
'flat/style': styleConfig,
3839
'flat/restriction': restrictionConfig,
3940
'flat/correctness': correctnessConfig,
4041
'flat/perf': perfConfig,
41-
'flat/suspicious': suspiciousConfig,
4242
};
4343

4444
export default configByCategory;

src/generated/rules-by-category.ts

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const pedanticRules: Record<string, 'off'> = {
4444
'@typescript-eslint/no-unsafe-function-type': 'off',
4545
'@typescript-eslint/prefer-enum-initializers': 'off',
4646
'@typescript-eslint/prefer-ts-expect-error': 'off',
47+
'unicorn/consistent-assert': 'off',
4748
'unicorn/consistent-empty-array-spread': 'off',
4849
'unicorn/escape-case': 'off',
4950
'unicorn/explicit-length-check': 'off',
@@ -86,6 +87,39 @@ const pedanticRules: Record<string, 'off'> = {
8687
'vitest/no-conditional-in-test': 'off',
8788
};
8889

90+
const suspiciousRules: Record<string, 'off'> = {
91+
'block-scoped-var': 'off',
92+
'no-unneeded-ternary': 'off',
93+
'no-extend-native': 'off',
94+
'no-new': 'off',
95+
'no-unexpected-multiline': 'off',
96+
'no-useless-concat': 'off',
97+
'no-useless-constructor': 'off',
98+
'import/no-empty-named-blocks': 'off',
99+
'import/no-absolute-path': 'off',
100+
'import/no-duplicates': 'off',
101+
'import/no-named-as-default': 'off',
102+
'import/no-named-as-default-member': 'off',
103+
'import/no-self-import': 'off',
104+
'jest/no-commented-out-tests': 'off',
105+
'promise/no-promise-in-callback': 'off',
106+
'react/iframe-missing-sandbox': 'off',
107+
'react/jsx-no-comment-textnodes': 'off',
108+
'react/jsx-no-script-url': 'off',
109+
'react/no-namespace': 'off',
110+
'react/react-in-jsx-scope': 'off',
111+
'react/style-prop-object': 'off',
112+
'@typescript-eslint/no-confusing-non-null-assertion': 'off',
113+
'@typescript-eslint/no-extraneous-class': 'off',
114+
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
115+
'unicorn/consistent-function-scoping': 'off',
116+
'unicorn/no-accessor-recursion': 'off',
117+
'unicorn/prefer-add-event-listener': 'off',
118+
'unicorn/require-post-message-target-origin': 'off',
119+
'@typescript-eslint/no-useless-constructor': 'off',
120+
'vitest/no-commented-out-tests': 'off',
121+
};
122+
89123
const styleRules: Record<string, 'off'> = {
90124
curly: 'off',
91125
'default-case-last': 'off',
@@ -442,6 +476,7 @@ const correctnessRules: Record<string, 'off'> = {
442476
'promise/no-callback-in-promise': 'off',
443477
'promise/no-new-statics': 'off',
444478
'promise/valid-params': 'off',
479+
'react/forward-ref-uses-ref': 'off',
445480
'react/jsx-key': 'off',
446481
'react/jsx-no-duplicate-props': 'off',
447482
'react/jsx-no-target-blank': 'off',
@@ -505,43 +540,11 @@ const perfRules: Record<string, 'off'> = {
505540
'unicorn/prefer-set-has': 'off',
506541
};
507542

508-
const suspiciousRules: Record<string, 'off'> = {
509-
'no-unneeded-ternary': 'off',
510-
'no-extend-native': 'off',
511-
'no-new': 'off',
512-
'no-unexpected-multiline': 'off',
513-
'no-useless-concat': 'off',
514-
'no-useless-constructor': 'off',
515-
'import/no-empty-named-blocks': 'off',
516-
'import/no-absolute-path': 'off',
517-
'import/no-duplicates': 'off',
518-
'import/no-named-as-default': 'off',
519-
'import/no-named-as-default-member': 'off',
520-
'import/no-self-import': 'off',
521-
'jest/no-commented-out-tests': 'off',
522-
'promise/no-promise-in-callback': 'off',
523-
'react/iframe-missing-sandbox': 'off',
524-
'react/jsx-no-comment-textnodes': 'off',
525-
'react/jsx-no-script-url': 'off',
526-
'react/no-namespace': 'off',
527-
'react/react-in-jsx-scope': 'off',
528-
'react/style-prop-object': 'off',
529-
'@typescript-eslint/no-confusing-non-null-assertion': 'off',
530-
'@typescript-eslint/no-extraneous-class': 'off',
531-
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
532-
'unicorn/consistent-function-scoping': 'off',
533-
'unicorn/no-accessor-recursion': 'off',
534-
'unicorn/prefer-add-event-listener': 'off',
535-
'unicorn/require-post-message-target-origin': 'off',
536-
'@typescript-eslint/no-useless-constructor': 'off',
537-
'vitest/no-commented-out-tests': 'off',
538-
};
539-
540543
export {
541544
pedanticRules,
545+
suspiciousRules,
542546
styleRules,
543547
restrictionRules,
544548
correctnessRules,
545549
perfRules,
546-
suspiciousRules,
547550
};

src/generated/rules-by-scope.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const eslintRules: Record<string, 'off'> = {
44
'array-callback-return': 'off',
5+
'block-scoped-var': 'off',
56
curly: 'off',
67
'default-case': 'off',
78
'default-case-last': 'off',
@@ -319,6 +320,7 @@ const promiseRules: Record<string, 'off'> = {
319320
const reactRules: Record<string, 'off'> = {
320321
'react/button-has-type': 'off',
321322
'react/checked-requires-onchange-or-readonly': 'off',
323+
'react/forward-ref-uses-ref': 'off',
322324
'react/iframe-missing-sandbox': 'off',
323325
'react/jsx-filename-extension': 'off',
324326
'react/jsx-boolean-value': 'off',
@@ -421,6 +423,7 @@ const typescriptRules: Record<string, 'off'> = {
421423

422424
const unicornRules: Record<string, 'off'> = {
423425
'unicorn/catch-error-name': 'off',
426+
'unicorn/consistent-assert': 'off',
424427
'unicorn/consistent-date-clone': 'off',
425428
'unicorn/consistent-empty-array-spread': 'off',
426429
'unicorn/consistent-existence-index-check': 'off',

0 commit comments

Comments
 (0)