@@ -107,8 +107,10 @@ module.exports = {
107107
108108 // Ensure consistent use of file extension within the import path
109109 // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
110- // TODO: enable when https://github.com/benmosher/eslint-plugin-import/issues/390 is resolved
111- 'import/extensions' : [ 'off' , 'never' ] ,
110+ 'import/extensions' : [ 'error' , 'always' , {
111+ js : 'never' ,
112+ jsx : 'never' ,
113+ } ] ,
112114
113115 // Enforce a convention in module import order
114116 // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
@@ -136,13 +138,11 @@ module.exports = {
136138
137139 // Forbid import of modules using absolute paths
138140 // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-absolute-path.md
139- // TODO: enable, semver-major
140- 'import/no-absolute-path' : [ 'off' ] ,
141+ 'import/no-absolute-path' : 'error' ,
141142
142143 // Forbid require() calls with expressions
143144 // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
144- // TODO: enable, semver-major
145- 'import/no-dynamic-require' : [ 'off' ] ,
145+ 'import/no-dynamic-require' : 'error' ,
146146
147147 // prevent importing the submodules of other modules
148148 // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md
0 commit comments