@@ -33,7 +33,7 @@ module.exports = {
3333
3434 // ensure imports point to files/modules that can be resolved
3535 // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
36- 'import/no-unresolved' : [ 'error' , { commonjs : true } ] ,
36+ 'import/no-unresolved' : [ 'error' , { commonjs : true , caseSensitive : true } ] ,
3737
3838 // ensure named imports coupled with named exports
3939 // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
@@ -92,9 +92,14 @@ module.exports = {
9292
9393 // Style guide:
9494
95+ // disallow non-import statements appearing before import statements
96+ // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md
97+ 'import/first' : [ 'error' , 'absolute-first' ] ,
98+
9599 // disallow non-import statements appearing before import statements
96100 // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/imports-first.md
97- 'import/imports-first' : [ 'error' , 'absolute-first' ] ,
101+ // deprecated: use `import/first`
102+ 'import/imports-first' : 'off' ,
98103
99104 // disallow duplicate imports
100105 // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
@@ -149,5 +154,18 @@ module.exports = {
149154 'import/no-internal-modules' : [ 'off' , {
150155 allow : [ ] ,
151156 } ] ,
157+
158+ // Warn if a module could be mistakenly parsed as a script by a consumer leveraging Unambiguous
159+ // JavaScript Grammar
160+ // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/unambiguous.md
161+ 'import/unambiguous' : 'off' ,
162+
163+ // Forbid Webpack loader syntax in imports
164+ // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
165+ 'import/no-webpack-loader-syntax' : 'off' ,
166+
167+ // Prevent unassigned imports
168+ // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
169+ 'import/no-unassigned-import' : 'off' ,
152170 } ,
153171} ;
0 commit comments