Skip to content

Commit 59d99f3

Browse files
oxc-botBoshen
andauthored
release: v1.4.0 (#447)
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 f291601 commit 59d99f3

File tree

7 files changed

+105
-84
lines changed

7 files changed

+105
-84
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.3.0",
3+
"version": "1.4.0",
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": "^16.0.0",
6969
"memfs": "^4.14.0",
70-
"oxlint": "^1.3.0",
70+
"oxlint": "^1.4.0",
7171
"prettier": "^3.3.3",
7272
"scule": "^1.3.0",
7373
"shelljs": "^0.10.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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,10 @@ exports[`contains all the oxlint rules 1`] = `
235235
"checkForEach": false,
236236
},
237237
],
238+
"arrow-body-style": [
239+
0,
240+
"as-needed",
241+
],
238242
"block-scoped-var": [
239243
0,
240244
],
@@ -279,6 +283,15 @@ exports[`contains all the oxlint rules 1`] = `
279283
"guard-for-in": [
280284
0,
281285
],
286+
"id-length": [
287+
0,
288+
{
289+
"exceptionPatterns": [],
290+
"exceptions": [],
291+
"min": 2,
292+
"properties": "always",
293+
},
294+
],
282295
"import/consistent-type-specifier-style": [
283296
0,
284297
],
@@ -354,6 +367,9 @@ exports[`contains all the oxlint rules 1`] = `
354367
"import/no-webpack-loader-syntax": [
355368
0,
356369
],
370+
"import/prefer-default-export": [
371+
0,
372+
],
357373
"import/unambiguous": [
358374
0,
359375
],

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ exports[`handleCategoriesScope > custom plugins, custom categories > customPlugi
44
{
55
"block-scoped-var": "off",
66
"import/no-absolute-path": "off",
7-
"import/no-duplicates": "off",
87
"import/no-empty-named-blocks": "off",
98
"import/no-named-as-default": "off",
109
"import/no-named-as-default-member": "off",

src/generated/configs-by-category.ts

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

10-
const suspiciousConfig = {
11-
name: 'oxlint/suspicious',
12-
rules: rules.suspiciousRules,
13-
};
14-
1510
const styleConfig = {
1611
name: 'oxlint/style',
1712
rules: rules.styleRules,
1813
};
1914

15+
const suspiciousConfig = {
16+
name: 'oxlint/suspicious',
17+
rules: rules.suspiciousRules,
18+
};
19+
2020
const restrictionConfig = {
2121
name: 'oxlint/restriction',
2222
rules: rules.restrictionRules,
@@ -34,8 +34,8 @@ const perfConfig = {
3434

3535
const configByCategory = {
3636
'flat/pedantic': pedanticConfig,
37-
'flat/suspicious': suspiciousConfig,
3837
'flat/style': styleConfig,
38+
'flat/suspicious': suspiciousConfig,
3939
'flat/restriction': restrictionConfig,
4040
'flat/correctness': correctnessConfig,
4141
'flat/perf': perfConfig,

src/generated/rules-by-category.ts

Lines changed: 41 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -89,50 +89,16 @@ const pedanticRules: Record<string, 'off'> = {
8989
'vitest/no-conditional-in-test': 'off',
9090
};
9191

92-
const suspiciousRules: Record<string, 'off'> = {
93-
'block-scoped-var': 'off',
94-
'no-extra-bind': 'off',
95-
'no-unneeded-ternary': 'off',
96-
'no-extend-native': 'off',
97-
'no-new': 'off',
98-
'no-unexpected-multiline': 'off',
99-
'no-useless-concat': 'off',
100-
'no-useless-constructor': 'off',
101-
'import/no-unassigned-import': 'off',
102-
'import/no-empty-named-blocks': 'off',
103-
'import/no-absolute-path': 'off',
104-
'import/no-duplicates': 'off',
105-
'import/no-named-as-default': 'off',
106-
'import/no-named-as-default-member': 'off',
107-
'import/no-self-import': 'off',
108-
'jest/no-commented-out-tests': 'off',
109-
'promise/no-promise-in-callback': 'off',
110-
'react/iframe-missing-sandbox': 'off',
111-
'react/jsx-no-comment-textnodes': 'off',
112-
'react/jsx-no-script-url': 'off',
113-
'react/no-namespace': 'off',
114-
'react/react-in-jsx-scope': 'off',
115-
'react/style-prop-object': 'off',
116-
'@typescript-eslint/no-confusing-non-null-assertion': 'off',
117-
'@typescript-eslint/no-extraneous-class': 'off',
118-
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
119-
'unicorn/consistent-function-scoping': 'off',
120-
'unicorn/no-instanceof-builtins': 'off',
121-
'unicorn/no-accessor-recursion': 'off',
122-
'unicorn/prefer-add-event-listener': 'off',
123-
'unicorn/require-post-message-target-origin': 'off',
124-
'@typescript-eslint/no-useless-constructor': 'off',
125-
'vitest/no-commented-out-tests': 'off',
126-
};
127-
12892
const styleRules: Record<string, 'off'> = {
93+
'arrow-body-style': 'off',
12994
curly: 'off',
13095
'default-case-last': 'off',
13196
'default-param-last': 'off',
13297
'func-style': 'off',
13398
'func-names': 'off',
13499
'grouped-accessor-pairs': 'off',
135100
'guard-for-in': 'off',
101+
'id-length': 'off',
136102
'init-declarations': 'off',
137103
'max-params': 'off',
138104
'new-cap': 'off',
@@ -171,6 +137,8 @@ const styleRules: Record<string, 'off'> = {
171137
'import/no-mutable-exports': 'off',
172138
'import/no-named-default': 'off',
173139
'import/no-namespace': 'off',
140+
'import/no-duplicates': 'off',
141+
'import/prefer-default-export': 'off',
174142
'jest/consistent-test-it': 'off',
175143
'jest/max-expects': 'off',
176144
'jest/max-nested-describe': 'off',
@@ -242,6 +210,7 @@ const styleRules: Record<string, 'off'> = {
242210
'unicorn/no-array-method-this-argument': 'off',
243211
'unicorn/no-await-expression-member': 'off',
244212
'unicorn/no-console-spaces': 'off',
213+
'unicorn/no-nested-ternary': 'off',
245214
'unicorn/no-null': 'off',
246215
'unicorn/no-unreadable-array-destructuring': 'off',
247216
'unicorn/no-zero-fractions': 'off',
@@ -300,6 +269,41 @@ const styleRules: Record<string, 'off'> = {
300269
'vitest/require-top-level-describe': 'off',
301270
};
302271

272+
const suspiciousRules: Record<string, 'off'> = {
273+
'block-scoped-var': 'off',
274+
'no-extra-bind': 'off',
275+
'no-unneeded-ternary': 'off',
276+
'no-extend-native': 'off',
277+
'no-new': 'off',
278+
'no-unexpected-multiline': 'off',
279+
'no-useless-concat': 'off',
280+
'no-useless-constructor': 'off',
281+
'import/no-unassigned-import': 'off',
282+
'import/no-empty-named-blocks': 'off',
283+
'import/no-absolute-path': 'off',
284+
'import/no-named-as-default': 'off',
285+
'import/no-named-as-default-member': 'off',
286+
'import/no-self-import': 'off',
287+
'jest/no-commented-out-tests': 'off',
288+
'promise/no-promise-in-callback': 'off',
289+
'react/iframe-missing-sandbox': 'off',
290+
'react/jsx-no-comment-textnodes': 'off',
291+
'react/jsx-no-script-url': 'off',
292+
'react/no-namespace': 'off',
293+
'react/react-in-jsx-scope': 'off',
294+
'react/style-prop-object': 'off',
295+
'@typescript-eslint/no-confusing-non-null-assertion': 'off',
296+
'@typescript-eslint/no-extraneous-class': 'off',
297+
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
298+
'unicorn/consistent-function-scoping': 'off',
299+
'unicorn/no-instanceof-builtins': 'off',
300+
'unicorn/no-accessor-recursion': 'off',
301+
'unicorn/prefer-add-event-listener': 'off',
302+
'unicorn/require-post-message-target-origin': 'off',
303+
'@typescript-eslint/no-useless-constructor': 'off',
304+
'vitest/no-commented-out-tests': 'off',
305+
};
306+
303307
const restrictionRules: Record<string, 'off'> = {
304308
'default-case': 'off',
305309
'no-alert': 'off',
@@ -357,7 +361,6 @@ const restrictionRules: Record<string, 'off'> = {
357361
'unicorn/no-document-cookie': 'off',
358362
'unicorn/no-length-as-slice-end': 'off',
359363
'unicorn/no-magic-array-flat-depth': 'off',
360-
'unicorn/no-nested-ternary': 'off',
361364
'unicorn/no-process-exit': 'off',
362365
'unicorn/prefer-modern-math-apis': 'off',
363366
'unicorn/prefer-node-protocol': 'off',
@@ -558,8 +561,8 @@ const perfRules: Record<string, 'off'> = {
558561

559562
export {
560563
pedanticRules,
561-
suspiciousRules,
562564
styleRules,
565+
suspiciousRules,
563566
restrictionRules,
564567
correctnessRules,
565568
perfRules,

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+
'arrow-body-style': 'off',
56
'block-scoped-var': 'off',
67
curly: 'off',
78
'default-case': 'off',
@@ -13,6 +14,7 @@ const eslintRules: Record<string, 'off'> = {
1314
'func-names': 'off',
1415
'grouped-accessor-pairs': 'off',
1516
'guard-for-in': 'off',
17+
'id-length': 'off',
1618
'init-declarations': 'off',
1719
'max-classes-per-file': 'off',
1820
'max-depth': 'off',
@@ -170,6 +172,7 @@ const importRules: Record<string, 'off'> = {
170172
'import/no-named-as-default-member': 'off',
171173
'import/no-self-import': 'off',
172174
'import/no-webpack-loader-syntax': 'off',
175+
'import/prefer-default-export': 'off',
173176
'import/unambiguous': 'off',
174177
};
175178

0 commit comments

Comments
 (0)