File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -213,8 +213,11 @@ const baseRules = {
213
213
} ;
214
214
215
215
const jsOverrides = {
216
- files : '*.js' ,
216
+ files : [ '*.js' , '*.jsx' ] ,
217
217
parserOptions : {
218
+ ecmaFeatures : {
219
+ jsx : true ,
220
+ } ,
218
221
ecmaVersion : '2017' ,
219
222
sourceType : 'module' ,
220
223
} ,
@@ -228,14 +231,17 @@ const jsOverrides = {
228
231
} ;
229
232
230
233
const tsOverrides = {
231
- files : '*.ts' ,
234
+ files : [ '*.ts' , '*.tsx' ] ,
232
235
extends : [
233
236
'plugin:@typescript-eslint/eslint-recommended' ,
234
237
'plugin:@typescript-eslint/recommended' ,
235
238
'plugin:@typescript-eslint/recommended-requiring-type-checking' ,
236
239
] ,
237
240
parser : '@typescript-eslint/parser' ,
238
241
parserOptions : {
242
+ ecmaFeatures : {
243
+ jsx : true ,
244
+ } ,
239
245
project : 'tsconfig.json' ,
240
246
tsconfigRootDir : '.' ,
241
247
} ,
You can’t perform that action at this time.
0 commit comments