Skip to content

Commit 975653e

Browse files
authored
release: v1.43.0 (#622)
1 parent 590d933 commit 975653e

File tree

9 files changed

+769
-728
lines changed

9 files changed

+769
-728
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.42.0",
3+
"version": "1.43.0",
44
"description": "Turn off all rules already supported by oxlint",
55
"keywords": [
66
"eslint",
@@ -69,7 +69,7 @@
6969
"lint-staged": "^16.0.0",
7070
"memfs": "^4.14.0",
7171
"oxfmt": "^0.28.0",
72-
"oxlint": "^1.42.0",
72+
"oxlint": "^1.43.0",
7373
"oxlint-tsgolint": "^0.10.1",
7474
"scule": "^1.3.0",
7575
"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.

scripts/generated/vitest-compatible-jest-rules.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"no-standalone-expect",
2121
"no-test-prefixes",
2222
"no-test-return-statement",
23+
"no-unneeded-async-expect-function",
2324
"prefer-called-with",
2425
"prefer-comparison-matcher",
2526
"prefer-each",

src/__snapshots__/configs.spec.ts.snap

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,12 @@ exports[`contains all the oxlint rules 1`] = `
538538
"import-x/no-namespace": [
539539
0,
540540
],
541+
"import-x/no-nodejs-modules": [
542+
0,
543+
],
544+
"import-x/no-relative-parent-imports": [
545+
0,
546+
],
541547
"import-x/no-self-import": [
542548
0,
543549
],
@@ -622,6 +628,12 @@ exports[`contains all the oxlint rules 1`] = `
622628
"import/no-namespace": [
623629
0,
624630
],
631+
"import/no-nodejs-modules": [
632+
0,
633+
],
634+
"import/no-relative-parent-imports": [
635+
0,
636+
],
625637
"import/no-self-import": [
626638
0,
627639
],
@@ -718,6 +730,9 @@ exports[`contains all the oxlint rules 1`] = `
718730
"jest/no-test-return-statement": [
719731
0,
720732
],
733+
"jest/no-unneeded-async-expect-function": [
734+
0,
735+
],
721736
"jest/no-untyped-mock-factory": [
722737
0,
723738
],
@@ -1455,6 +1470,13 @@ exports[`contains all the oxlint rules 1`] = `
14551470
0,
14561471
"always",
14571472
],
1473+
"prefer-const": [
1474+
0,
1475+
{
1476+
"destructuring": "any",
1477+
"ignoreReadBeforeAssign": false,
1478+
},
1479+
],
14581480
"prefer-destructuring": [
14591481
0,
14601482
],
@@ -1654,6 +1676,9 @@ exports[`contains all the oxlint rules 1`] = `
16541676
"react/no-is-mounted": [
16551677
0,
16561678
],
1679+
"react/no-multi-comp": [
1680+
0,
1681+
],
16571682
"react/no-namespace": [
16581683
0,
16591684
],

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ exports[`handleCategoriesScope > default plugins (react, unicorn, typescript), d
107107
"@typescript-eslint/no-useless-empty-export": "off",
108108
"@typescript-eslint/no-wrapper-object-types": "off",
109109
"@typescript-eslint/prefer-as-const": "off",
110+
"@typescript-eslint/prefer-namespace-keyword": "off",
110111
"@typescript-eslint/triple-slash-reference": "off",
111112
"constructor-super": "off",
112113
"for-direction": "off",

src/generated/configs-by-category.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@
22

33
import * as rules from './rules-by-category.js';
44

5+
const pedanticConfig = {
6+
name: 'oxlint/pedantic',
7+
rules: rules.pedanticRules,
8+
} as const;
9+
510
const styleConfig = {
611
name: 'oxlint/style',
712
rules: rules.styleRules,
813
} as const;
914

10-
const correctnessConfig = {
11-
name: 'oxlint/correctness',
12-
rules: rules.correctnessRules,
13-
} as const;
14-
15-
const nurseryConfig = {
16-
name: 'oxlint/nursery',
17-
rules: rules.nurseryRules,
15+
const suspiciousConfig = {
16+
name: 'oxlint/suspicious',
17+
rules: rules.suspiciousRules,
1818
} as const;
1919

2020
const restrictionConfig = {
2121
name: 'oxlint/restriction',
2222
rules: rules.restrictionRules,
2323
} as const;
2424

25-
const pedanticConfig = {
26-
name: 'oxlint/pedantic',
27-
rules: rules.pedanticRules,
25+
const correctnessConfig = {
26+
name: 'oxlint/correctness',
27+
rules: rules.correctnessRules,
2828
} as const;
2929

30-
const suspiciousConfig = {
31-
name: 'oxlint/suspicious',
32-
rules: rules.suspiciousRules,
30+
const nurseryConfig = {
31+
name: 'oxlint/nursery',
32+
rules: rules.nurseryRules,
3333
} as const;
3434

3535
const perfConfig = {
@@ -38,12 +38,12 @@ const perfConfig = {
3838
} as const;
3939

4040
const configByCategory = {
41+
'flat/pedantic': pedanticConfig,
4142
'flat/style': styleConfig,
43+
'flat/suspicious': suspiciousConfig,
44+
'flat/restriction': restrictionConfig,
4245
'flat/correctness': correctnessConfig,
4346
'flat/nursery': nurseryConfig,
44-
'flat/restriction': restrictionConfig,
45-
'flat/pedantic': pedanticConfig,
46-
'flat/suspicious': suspiciousConfig,
4747
'flat/perf': perfConfig,
4848
};
4949

0 commit comments

Comments
 (0)