Skip to content

Commit 298631d

Browse files
committed
Use correct rule mappings
1 parent 5c13332 commit 298631d

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/config-base/__snapshots__/index.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ exports[`is a valid Oxlint config 1`] = `
6262
"eslint/new-cap": "off",
6363
"eslint/no-await-in-loop": "off",
6464
"eslint/no-continue": "off",
65-
"eslint/no-deprecated": "warn",
6665
"eslint/no-duplicate-imports": "off",
6766
"eslint/no-else-return": [
6867
"error",
@@ -118,6 +117,7 @@ exports[`is a valid Oxlint config 1`] = `
118117
"varsIgnorePattern": "^_",
119118
},
120119
],
120+
"eslint/no-use-before-define": "off",
121121
"eslint/no-void": "off",
122122
"eslint/prefer-destructuring": [
123123
"error",
@@ -200,6 +200,7 @@ exports[`is a valid Oxlint config 1`] = `
200200
"ignoreArrowShorthand": true,
201201
},
202202
],
203+
"typescript/no-deprecated": "warn",
203204
"typescript/no-empty-interface": "off",
204205
"typescript/no-explicit-any": "off",
205206
"typescript/no-misused-promises": [
@@ -227,7 +228,6 @@ exports[`is a valid Oxlint config 1`] = `
227228
},
228229
],
229230
"typescript/no-unsafe-type-assertion": "off",
230-
"typescript/no-use-before-define": "off",
231231
"typescript/only-throw-error": [
232232
"error",
233233
{

src/config-base/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const config: LinterConfigEntry = {
5151
'eslint/new-cap': 'off',
5252
'eslint/no-await-in-loop': 'off',
5353
'eslint/no-continue': 'off',
54-
'eslint/no-deprecated': 'warn',
5554
'eslint/no-duplicate-imports': 'off',
5655
'eslint/no-else-return': ['error', { allowElseIf: false }],
5756
'eslint/no-empty': ['error', { allowEmptyCatch: true }],
@@ -80,6 +79,7 @@ const config: LinterConfigEntry = {
8079
varsIgnorePattern: '^_',
8180
},
8281
],
82+
'eslint/no-use-before-define': 'off',
8383
'eslint/no-void': 'off',
8484
'eslint/prefer-destructuring': [
8585
'error',
@@ -150,6 +150,7 @@ const config: LinterConfigEntry = {
150150
'error',
151151
{ ignoreArrowShorthand: true },
152152
],
153+
'typescript/no-deprecated': 'warn',
153154
'typescript/no-empty-interface': 'off',
154155
'typescript/no-explicit-any': 'off',
155156
'typescript/no-misused-promises': [
@@ -172,7 +173,6 @@ const config: LinterConfigEntry = {
172173
},
173174
],
174175
'typescript/no-unsafe-type-assertion': 'off',
175-
'typescript/no-use-before-define': 'off',
176176
'typescript/only-throw-error': [
177177
'error',
178178
{

src/config-test-files/__snapshots__/index.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ exports[`is a valid Oxlint config override 1`] = `
44
{
55
"rules": {
66
"eslint/no-alert": "off",
7+
"eslint/no-empty-function": "off",
78
"eslint/no-param-reassign": "off",
89
"eslint/no-promise-executor-return": "off",
910
"import/no-unassigned-import": "off",
@@ -59,7 +60,6 @@ exports[`is a valid Oxlint config override 1`] = `
5960
"react/no-danger": "off",
6061
"typescript/ban-ts-comment": "off",
6162
"typescript/no-confusing-void-expression": "off",
62-
"typescript/no-empty-function": "off",
6363
"typescript/no-extraneous-class": "off",
6464
"typescript/no-unsafe-argument": "off",
6565
"typescript/no-unsafe-assignment": "off",

src/config-test-files/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { LinterConfigOverrideEntry } from '../types/index.d.ts';
33
const config: LinterConfigOverrideEntry = {
44
rules: {
55
'eslint/no-alert': 'off',
6+
'eslint/no-empty-function': 'off',
67
'eslint/no-param-reassign': 'off',
78
'eslint/no-promise-executor-return': 'off',
89
'import/no-unassigned-import': 'off',
@@ -58,7 +59,6 @@ const config: LinterConfigOverrideEntry = {
5859
'react/no-danger': 'off',
5960
'typescript/ban-ts-comment': 'off',
6061
'typescript/no-confusing-void-expression': 'off',
61-
'typescript/no-empty-function': 'off',
6262
'typescript/no-extraneous-class': 'off',
6363
'typescript/no-unsafe-argument': 'off',
6464
'typescript/no-unsafe-assignment': 'off',

src/define-config/__snapshots__/index.test.ts.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ exports[`defines a valid Oxlint config 1`] = `
3939
],
4040
"rules": {
4141
"eslint/no-alert": "off",
42+
"eslint/no-empty-function": "off",
4243
"eslint/no-param-reassign": "off",
4344
"eslint/no-promise-executor-return": "off",
4445
"import/no-unassigned-import": "off",
@@ -94,7 +95,6 @@ exports[`defines a valid Oxlint config 1`] = `
9495
"react/no-danger": "off",
9596
"typescript/ban-ts-comment": "off",
9697
"typescript/no-confusing-void-expression": "off",
97-
"typescript/no-empty-function": "off",
9898
"typescript/no-extraneous-class": "off",
9999
"typescript/no-unsafe-argument": "off",
100100
"typescript/no-unsafe-assignment": "off",
@@ -189,7 +189,6 @@ exports[`defines a valid Oxlint config 1`] = `
189189
"eslint/new-cap": "off",
190190
"eslint/no-await-in-loop": "off",
191191
"eslint/no-continue": "off",
192-
"eslint/no-deprecated": "warn",
193192
"eslint/no-duplicate-imports": "off",
194193
"eslint/no-else-return": [
195194
"error",
@@ -245,6 +244,7 @@ exports[`defines a valid Oxlint config 1`] = `
245244
"varsIgnorePattern": "^_",
246245
},
247246
],
247+
"eslint/no-use-before-define": "off",
248248
"eslint/no-void": "off",
249249
"eslint/prefer-destructuring": [
250250
"error",
@@ -327,6 +327,7 @@ exports[`defines a valid Oxlint config 1`] = `
327327
"ignoreArrowShorthand": true,
328328
},
329329
],
330+
"typescript/no-deprecated": "warn",
330331
"typescript/no-empty-interface": "off",
331332
"typescript/no-explicit-any": "off",
332333
"typescript/no-misused-promises": [
@@ -354,7 +355,6 @@ exports[`defines a valid Oxlint config 1`] = `
354355
},
355356
],
356357
"typescript/no-unsafe-type-assertion": "off",
357-
"typescript/no-use-before-define": "off",
358358
"typescript/only-throw-error": [
359359
"error",
360360
{
@@ -469,6 +469,7 @@ exports[`supports the \`react\` option 1`] = `
469469
],
470470
"rules": {
471471
"eslint/no-alert": "off",
472+
"eslint/no-empty-function": "off",
472473
"eslint/no-param-reassign": "off",
473474
"eslint/no-promise-executor-return": "off",
474475
"import/no-unassigned-import": "off",
@@ -524,7 +525,6 @@ exports[`supports the \`react\` option 1`] = `
524525
"react/no-danger": "off",
525526
"typescript/ban-ts-comment": "off",
526527
"typescript/no-confusing-void-expression": "off",
527-
"typescript/no-empty-function": "off",
528528
"typescript/no-extraneous-class": "off",
529529
"typescript/no-unsafe-argument": "off",
530530
"typescript/no-unsafe-assignment": "off",
@@ -622,7 +622,6 @@ exports[`supports the \`react\` option 1`] = `
622622
"eslint/new-cap": "off",
623623
"eslint/no-await-in-loop": "off",
624624
"eslint/no-continue": "off",
625-
"eslint/no-deprecated": "warn",
626625
"eslint/no-duplicate-imports": "off",
627626
"eslint/no-else-return": [
628627
"error",
@@ -678,6 +677,7 @@ exports[`supports the \`react\` option 1`] = `
678677
"varsIgnorePattern": "^_",
679678
},
680679
],
680+
"eslint/no-use-before-define": "off",
681681
"eslint/no-void": "off",
682682
"eslint/prefer-destructuring": [
683683
"error",
@@ -867,6 +867,7 @@ exports[`supports the \`react\` option 1`] = `
867867
"ignoreArrowShorthand": true,
868868
},
869869
],
870+
"typescript/no-deprecated": "warn",
870871
"typescript/no-empty-interface": "off",
871872
"typescript/no-explicit-any": "off",
872873
"typescript/no-misused-promises": [
@@ -894,7 +895,6 @@ exports[`supports the \`react\` option 1`] = `
894895
},
895896
],
896897
"typescript/no-unsafe-type-assertion": "off",
897-
"typescript/no-use-before-define": "off",
898898
"typescript/only-throw-error": [
899899
"error",
900900
{

0 commit comments

Comments
 (0)