Skip to content

Commit dd2be9d

Browse files
oxc-botBoshen
andauthored
release: v0.9.3 (#152)
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 39109a1 commit dd2be9d

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-oxlint",
3-
"version": "0.9.2",
3+
"version": "0.9.3",
44
"description": "Turn off all rules already supported by oxlint",
55
"type": "module",
66
"packageManager": "pnpm@9.9.0",

src/rules-by-category.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,13 @@ const restrictionRules = {
7878
'import/no-amd': 'off',
7979
'import/no-cycle': 'off',
8080
'import/no-default-export': 'off',
81+
'import/no-dynamic-require': 'off',
8182
'import/no-webpack-loader-syntax': 'off',
8283
'jsdoc/check-access': 'off',
8384
'jsdoc/empty-tags': 'off',
8485
'promise/avoid-new': 'off',
86+
'promise/catch-or-return': 'off',
87+
'promise/spec-only': 'off',
8588
'react/button-has-type': 'off',
8689
'react/no-danger': 'off',
8790
'react/no-unknown-property': 'off',
@@ -109,6 +112,7 @@ const styleRules = {
109112
'no-continue': 'off',
110113
'no-label-var': 'off',
111114
'no-multi-str': 'off',
115+
'no-new-func': 'off',
112116
'no-script-url': 'off',
113117
'no-template-curly-in-string': 'off',
114118
'no-ternary': 'off',
@@ -357,6 +361,7 @@ const fixRules = {
357361
'jsx-a11y/no-autofocus': 'off',
358362
'jsx-a11y/no-redundant-roles': 'off',
359363
'jsx-a11y/scope': 'off',
364+
'node/no-exports-assign': 'off',
360365
'promise/no-new-statics': 'off',
361366
'react/jsx-boolean-value': 'off',
362367
'react/jsx-props-no-spread-multi': 'off',
@@ -393,12 +398,14 @@ const fixRules = {
393398
'unicorn/prefer-string-slice': 'off',
394399
'unicorn/prefer-string-starts-ends-with': 'off',
395400
'unicorn/prefer-string-trim-start-end': 'off',
401+
'unicorn/prefer-type-error': 'off',
396402
'unicorn/require-number-to-fixed-digits-argument': 'off',
397403
'unicorn/switch-case-braces': 'off',
398404
'unicorn/text-encoding-identifier-case': 'off',
399405
'unicorn/throw-new-error': 'off',
400406
'vitest/no-import-node-test': 'off',
401407
'vitest/prefer-to-be-falsy': 'off',
408+
'vitest/prefer-to-be-object': 'off',
402409
'vitest/prefer-to-be-truthy': 'off',
403410
};
404411

@@ -414,11 +421,11 @@ const pendingRules = {
414421
'no-extra-boolean-cast': 'off',
415422
'no-fallthrough': 'off',
416423
'jsx-a11y/tabindex-no-positive': 'off',
424+
'react/self-closing-comp': 'off',
417425
'unicorn/consistent-function-scoping': 'off',
418426
'unicorn/prefer-modern-math-apis': 'off',
419427
'unicorn/prefer-native-coercion-functions': 'off',
420428
'unicorn/prefer-structured-clone': 'off',
421-
'unicorn/prefer-type-error': 'off',
422429
};
423430

424431
const suspiciousRules = {

src/rules-by-scope.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const eslintRules = {
5757
'no-loss-of-precision': 'off',
5858
'no-multi-str': 'off',
5959
'no-new': 'off',
60+
'no-new-func': 'off',
6061
'no-new-native-nonconstructor': 'off',
6162
'no-new-wrappers': 'off',
6263
'no-nonoctal-decimal-escape': 'off',
@@ -115,6 +116,7 @@ const importRules = {
115116
'import/no-default-export': 'off',
116117
'import/no-deprecated': 'off',
117118
'import/no-duplicates': 'off',
119+
'import/no-dynamic-require': 'off',
118120
'import/no-named-as-default': 'off',
119121
'import/no-named-as-default-member': 'off',
120122
'import/no-self-import': 'off',
@@ -247,12 +249,18 @@ const nextjsRules = {
247249
'nextjs/no-unwanted-polyfillio': 'off',
248250
};
249251

252+
const nodeRules = {
253+
'node/no-exports-assign': 'off',
254+
};
255+
250256
const promiseRules = {
251257
'promise/avoid-new': 'off',
258+
'promise/catch-or-return': 'off',
252259
'promise/no-new-statics': 'off',
253260
'promise/no-return-in-finally': 'off',
254261
'promise/param-names': 'off',
255262
'promise/prefer-await-to-then': 'off',
263+
'promise/spec-only': 'off',
256264
'promise/valid-params': 'off',
257265
};
258266

@@ -282,6 +290,7 @@ const reactRules = {
282290
'react/react-in-jsx-scope': 'off',
283291
'react/require-render-return': 'off',
284292
'react/rules-of-hooks': 'off',
293+
'react/self-closing-comp': 'off',
285294
'react/void-dom-elements-no-children': 'off',
286295
};
287296

@@ -429,6 +438,7 @@ const vitestRules = {
429438
'vitest/no-import-node-test': 'off',
430439
'vitest/prefer-each': 'off',
431440
'vitest/prefer-to-be-falsy': 'off',
441+
'vitest/prefer-to-be-object': 'off',
432442
'vitest/prefer-to-be-truthy': 'off',
433443
'vitest/require-local-test-context-for-concurrent-snapshots': 'off',
434444
};
@@ -440,6 +450,7 @@ export {
440450
jsdocRules,
441451
jsxA11yRules,
442452
nextjsRules,
453+
nodeRules,
443454
promiseRules,
444455
reactRules,
445456
reactPerfRules,

0 commit comments

Comments
 (0)