Skip to content

Commit b5f0924

Browse files
committed
Disable eslint/* rules enforced by TypeScript
1 parent 3ae9536 commit b5f0924

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ exports[`is a valid Oxlint config 1`] = `
4444
],
4545
"eslint/arrow-body-style": "off",
4646
"eslint/capitalized-comments": "off",
47+
"eslint/constructor-super": "off",
48+
"eslint/default-case": "off",
49+
"eslint/default-case-last": "error",
4750
"eslint/func-names": "off",
4851
"eslint/func-style": [
4952
"error",
@@ -65,7 +68,10 @@ exports[`is a valid Oxlint config 1`] = `
6568
"eslint/max-statements": "off",
6669
"eslint/new-cap": "off",
6770
"eslint/no-await-in-loop": "off",
71+
"eslint/no-class-assign": "off",
72+
"eslint/no-const-assign": "off",
6873
"eslint/no-continue": "off",
74+
"eslint/no-dupe-class-members": "off",
6975
"eslint/no-duplicate-imports": "off",
7076
"eslint/no-else-return": [
7177
"error",
@@ -80,8 +86,12 @@ exports[`is a valid Oxlint config 1`] = `
8086
},
8187
],
8288
"eslint/no-empty-function": "warn",
89+
"eslint/no-fallthrough": "off",
90+
"eslint/no-func-assign": "off",
91+
"eslint/no-import-assign": "off",
8392
"eslint/no-inline-comments": "off",
8493
"eslint/no-magic-numbers": "off",
94+
"eslint/no-redeclare": "off",
8595
"eslint/no-return-assign": [
8696
"error",
8797
"always",
@@ -92,8 +102,11 @@ exports[`is a valid Oxlint config 1`] = `
92102
"props": true,
93103
},
94104
],
105+
"eslint/no-setter-return": "off",
95106
"eslint/no-shadow": "off",
96107
"eslint/no-ternary": "off",
108+
"eslint/no-this-before-super": "off",
109+
"eslint/no-undef": "off",
97110
"eslint/no-undefined": "off",
98111
"eslint/no-unsafe-negation": [
99112
"error",

src/config-base/index.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const config: LinterConfigEntry = {
3838
'eslint/array-callback-return': ['error', { allowImplicit: true }],
3939
'eslint/arrow-body-style': 'off',
4040
'eslint/capitalized-comments': 'off',
41+
'eslint/constructor-super': 'off',
42+
'eslint/default-case': 'off',
43+
'eslint/default-case-last': 'error',
4144
'eslint/func-names': 'off',
4245
'eslint/func-style': [
4346
'error',
@@ -54,17 +57,27 @@ const config: LinterConfigEntry = {
5457
'eslint/max-statements': 'off',
5558
'eslint/new-cap': 'off',
5659
'eslint/no-await-in-loop': 'off',
60+
'eslint/no-class-assign': 'off',
61+
'eslint/no-const-assign': 'off',
5762
'eslint/no-continue': 'off',
63+
'eslint/no-dupe-class-members': 'off',
5864
'eslint/no-duplicate-imports': 'off',
5965
'eslint/no-else-return': ['error', { allowElseIf: false }],
6066
'eslint/no-empty': ['error', { allowEmptyCatch: true }],
6167
'eslint/no-empty-function': 'warn',
68+
'eslint/no-fallthrough': 'off',
69+
'eslint/no-func-assign': 'off',
70+
'eslint/no-import-assign': 'off',
6271
'eslint/no-inline-comments': 'off',
6372
'eslint/no-magic-numbers': 'off',
73+
'eslint/no-redeclare': 'off',
6474
'eslint/no-return-assign': ['error', 'always'],
6575
'eslint/no-self-assign': ['error', { props: true }],
76+
'eslint/no-setter-return': 'off',
6677
'eslint/no-shadow': 'off',
6778
'eslint/no-ternary': 'off',
79+
'eslint/no-this-before-super': 'off',
80+
'eslint/no-undef': 'off',
6881
'eslint/no-undefined': 'off',
6982
'eslint/no-unsafe-negation': [
7083
'error',

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ exports[`defines a valid Oxlint config 1`] = `
209209
],
210210
"eslint/arrow-body-style": "off",
211211
"eslint/capitalized-comments": "off",
212+
"eslint/constructor-super": "off",
213+
"eslint/default-case": "off",
214+
"eslint/default-case-last": "error",
212215
"eslint/func-names": "off",
213216
"eslint/func-style": [
214217
"error",
@@ -230,7 +233,10 @@ exports[`defines a valid Oxlint config 1`] = `
230233
"eslint/max-statements": "off",
231234
"eslint/new-cap": "off",
232235
"eslint/no-await-in-loop": "off",
236+
"eslint/no-class-assign": "off",
237+
"eslint/no-const-assign": "off",
233238
"eslint/no-continue": "off",
239+
"eslint/no-dupe-class-members": "off",
234240
"eslint/no-duplicate-imports": "off",
235241
"eslint/no-else-return": [
236242
"error",
@@ -245,8 +251,12 @@ exports[`defines a valid Oxlint config 1`] = `
245251
},
246252
],
247253
"eslint/no-empty-function": "warn",
254+
"eslint/no-fallthrough": "off",
255+
"eslint/no-func-assign": "off",
256+
"eslint/no-import-assign": "off",
248257
"eslint/no-inline-comments": "off",
249258
"eslint/no-magic-numbers": "off",
259+
"eslint/no-redeclare": "off",
250260
"eslint/no-return-assign": [
251261
"error",
252262
"always",
@@ -257,8 +267,11 @@ exports[`defines a valid Oxlint config 1`] = `
257267
"props": true,
258268
},
259269
],
270+
"eslint/no-setter-return": "off",
260271
"eslint/no-shadow": "off",
261272
"eslint/no-ternary": "off",
273+
"eslint/no-this-before-super": "off",
274+
"eslint/no-undef": "off",
262275
"eslint/no-undefined": "off",
263276
"eslint/no-unsafe-negation": [
264277
"error",
@@ -988,6 +1001,9 @@ exports[`supports the \`react\` option 1`] = `
9881001
],
9891002
"eslint/arrow-body-style": "off",
9901003
"eslint/capitalized-comments": "off",
1004+
"eslint/constructor-super": "off",
1005+
"eslint/default-case": "off",
1006+
"eslint/default-case-last": "error",
9911007
"eslint/func-names": "off",
9921008
"eslint/func-style": [
9931009
"error",
@@ -1009,7 +1025,10 @@ exports[`supports the \`react\` option 1`] = `
10091025
"eslint/max-statements": "off",
10101026
"eslint/new-cap": "off",
10111027
"eslint/no-await-in-loop": "off",
1028+
"eslint/no-class-assign": "off",
1029+
"eslint/no-const-assign": "off",
10121030
"eslint/no-continue": "off",
1031+
"eslint/no-dupe-class-members": "off",
10131032
"eslint/no-duplicate-imports": "off",
10141033
"eslint/no-else-return": [
10151034
"error",
@@ -1024,8 +1043,12 @@ exports[`supports the \`react\` option 1`] = `
10241043
},
10251044
],
10261045
"eslint/no-empty-function": "warn",
1046+
"eslint/no-fallthrough": "off",
1047+
"eslint/no-func-assign": "off",
1048+
"eslint/no-import-assign": "off",
10271049
"eslint/no-inline-comments": "off",
10281050
"eslint/no-magic-numbers": "off",
1051+
"eslint/no-redeclare": "off",
10291052
"eslint/no-return-assign": [
10301053
"error",
10311054
"always",
@@ -1036,8 +1059,11 @@ exports[`supports the \`react\` option 1`] = `
10361059
"props": true,
10371060
},
10381061
],
1062+
"eslint/no-setter-return": "off",
10391063
"eslint/no-shadow": "off",
10401064
"eslint/no-ternary": "off",
1065+
"eslint/no-this-before-super": "off",
1066+
"eslint/no-undef": "off",
10411067
"eslint/no-undefined": "off",
10421068
"eslint/no-unsafe-negation": [
10431069
"error",

0 commit comments

Comments
 (0)