Skip to content

Commit 2e15cec

Browse files
authored
release: v1.16.0 (#509)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Boshen <[email protected]>
1 parent eac3dc1 commit 2e15cec

File tree

6 files changed

+68
-39
lines changed

6 files changed

+68
-39
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.15.0",
3+
"version": "1.16.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.15.0",
72+
"oxlint": "^1.16.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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ exports[`contains all the oxlint rules 1`] = `
8080
"@typescript-eslint/ban-types": [
8181
0,
8282
],
83+
"@typescript-eslint/class-methods-use-this": [
84+
0,
85+
],
8386
"@typescript-eslint/consistent-generic-constructors": [
8487
0,
8588
],
@@ -248,6 +251,14 @@ exports[`contains all the oxlint rules 1`] = `
248251
"block-scoped-var": [
249252
0,
250253
],
254+
"class-methods-use-this": [
255+
0,
256+
{
257+
"enforceForClassFields": true,
258+
"exceptMethods": [],
259+
"ignoreOverrideMethods": false,
260+
},
261+
],
251262
"curly": [
252263
0,
253264
"all",
@@ -1088,6 +1099,12 @@ exports[`contains all the oxlint rules 1`] = `
10881099
"no-useless-catch": [
10891100
0,
10901101
],
1102+
"no-useless-computed-key": [
1103+
0,
1104+
{
1105+
"enforceForClassMembers": true,
1106+
},
1107+
],
10911108
"no-useless-concat": [
10921109
0,
10931110
],
@@ -1160,6 +1177,9 @@ exports[`contains all the oxlint rules 1`] = `
11601177
"prefer-template": [
11611178
0,
11621179
],
1180+
"preserve-caught-error": [
1181+
0,
1182+
],
11631183
"promise/always-return": [
11641184
0,
11651185
],

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ exports[`handleCategoriesScope > custom plugins, custom categories > customPlugi
1616
"no-unneeded-ternary": "off",
1717
"no-useless-concat": "off",
1818
"no-useless-constructor": "off",
19+
"preserve-caught-error": "off",
1920
}
2021
`;
2122

src/generated/rules-by-category.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ const styleRules: Record<string, 'off'> = {
102102
'init-declarations': 'off',
103103
'max-params': 'off',
104104
'new-cap': 'off',
105+
'no-useless-computed-key': 'off',
105106
'no-duplicate-imports': 'off',
106107
'no-extra-label': 'off',
107108
'no-labels': 'off',
@@ -284,6 +285,7 @@ const suspiciousRules: Record<string, 'off'> = {
284285
'no-unexpected-multiline': 'off',
285286
'no-useless-concat': 'off',
286287
'no-useless-constructor': 'off',
288+
'preserve-caught-error': 'off',
287289
'import/no-unassigned-import': 'off',
288290
'import/no-empty-named-blocks': 'off',
289291
'import/no-absolute-path': 'off',
@@ -313,6 +315,7 @@ const suspiciousRules: Record<string, 'off'> = {
313315
};
314316

315317
const restrictionRules: Record<string, 'off'> = {
318+
'class-methods-use-this': 'off',
316319
'default-case': 'off',
317320
'no-alert': 'off',
318321
'no-bitwise': 'off',
@@ -375,6 +378,7 @@ const restrictionRules: Record<string, 'off'> = {
375378
'unicorn/prefer-node-protocol': 'off',
376379
'unicorn/prefer-number-properties': 'off',
377380
'vue/no-multiple-slot-args': 'off',
381+
'@typescript-eslint/class-methods-use-this': 'off',
378382
'@typescript-eslint/no-restricted-imports': 'off',
379383
'@typescript-eslint/no-empty-function': 'off',
380384
'@typescript-eslint/no-unused-expressions': 'off',

src/generated/rules-by-scope.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const eslintRules: Record<string, 'off'> = {
44
'array-callback-return': 'off',
55
'arrow-body-style': 'off',
66
'block-scoped-var': 'off',
7+
'class-methods-use-this': 'off',
78
curly: 'off',
89
'default-case': 'off',
910
'default-case-last': 'off',
@@ -23,6 +24,7 @@ const eslintRules: Record<string, 'off'> = {
2324
'max-nested-callbacks': 'off',
2425
'max-params': 'off',
2526
'new-cap': 'off',
27+
'no-useless-computed-key': 'off',
2628
'no-unassigned-vars': 'off',
2729
'no-extra-bind': 'off',
2830
'no-alert': 'off',
@@ -135,6 +137,7 @@ const eslintRules: Record<string, 'off'> = {
135137
'prefer-object-spread': 'off',
136138
'prefer-rest-params': 'off',
137139
'prefer-spread': 'off',
140+
'preserve-caught-error': 'off',
138141
radix: 'off',
139142
'require-await': 'off',
140143
'require-yield': 'off',
@@ -426,6 +429,7 @@ const typescriptRules: Record<string, 'off'> = {
426429
'@typescript-eslint/prefer-namespace-keyword': 'off',
427430
'@typescript-eslint/prefer-ts-expect-error': 'off',
428431
'@typescript-eslint/triple-slash-reference': 'off',
432+
'@typescript-eslint/class-methods-use-this': 'off',
429433
'@typescript-eslint/default-param-last': 'off',
430434
'@typescript-eslint/init-declarations': 'off',
431435
'@typescript-eslint/max-params': 'off',

0 commit comments

Comments
 (0)