File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ /**
2
+ * Adds `.jsx`, `.ts` and `.tsx` as an extension, and enables JSX/TSX parsing.
3
+ */
4
+ var jsExtensions = [ '.js' , '.jsx' ] ;
5
+ var tsExtensions = [ '.ts' , '.tsx' ] ;
6
+ var allExtensions = jsExtensions . concat ( tsExtensions ) ;
7
+
8
+ module . exports = {
9
+
10
+ settings : {
11
+ 'import/extensions' : allExtensions ,
12
+ 'import/parsers' : {
13
+ 'typescript-eslint-parser' : tsExtensions
14
+ } ,
15
+ 'import/resolver' : {
16
+ 'node' : {
17
+ 'extensions' : allExtensions
18
+ }
19
+ }
20
+ }
21
+
22
+ }
Original file line number Diff line number Diff line change @@ -62,4 +62,5 @@ export const configs = {
62
62
'react' : require ( '../config/react' ) ,
63
63
'react-native' : require ( '../config/react-native' ) ,
64
64
'electron' : require ( '../config/electron' ) ,
65
+ 'typescript' : require ( '../config/typescript' ) ,
65
66
}
You can’t perform that action at this time.
0 commit comments