File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
- import foo from './local-module' ;
1
+ import foo from './local-module.js ' ;
2
2
import fs from 'fs' ;
3
3
import path from 'path' ;
4
4
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ module.exports = {
17
17
'dot-notation' : [ 'error' , { allowPattern : '^[a-z]+(_[a-z]+)+$' } ] ,
18
18
eqeqeq : 'error' ,
19
19
'import/default' : 'error' ,
20
+ 'import/extensions' : [ 'error' , 'always' ] ,
20
21
'import/first' : 'error' ,
21
22
'import/named' : 'error' ,
22
23
'import/no-duplicates' : 'error' ,
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ module.exports = {
2
2
extends : [ './index.js' ] ,
3
3
plugins : [ 'react' , 'react-hooks' ] ,
4
4
parserOptions : {
5
+ ecmaVersion : 'latest' ,
6
+ sourceType : 'module' ,
5
7
ecmaFeatures : {
6
8
jsx : true ,
7
9
} ,
You can’t perform that action at this time.
0 commit comments