@@ -10,9 +10,6 @@ module.exports = {
1010 'objectLiteralDuplicateProperties' : false
1111 }
1212 } ,
13- 'plugins' : [
14- 'import'
15- ] ,
1613
1714 'rules' : {
1815 // enforces no braces where they can be omitted
@@ -121,108 +118,6 @@ module.exports = {
121118
122119 // enforce spacing around the * in yield* expressions
123120 // http://eslint.org/docs/rules/yield-star-spacing
124- 'yield-star-spacing' : [ 2 , 'after' ] ,
125-
126- // disallow invalid exports, e.g. multiple defaults
127- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md
128- 'import/export' : 2 ,
129-
130- // ensure default import coupled with default export
131- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/default.md#when-not-to-use-it
132- 'import/default' : 0 ,
133-
134- // Ensure consistent use of file extension within the import path
135- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
136- // TODO: enable
137- 'import/extensions' : [ 0 , 'never' ] ,
138-
139- // ensure named imports coupled with named exports
140- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md#when-not-to-use-it
141- 'import/named' : 0 ,
142-
143- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/namespace.md
144- 'import/namespace' : 0 ,
145-
146- // Forbid the use of extraneous packages
147- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
148- // TODO: enable
149- 'import/no-extraneous-dependencies' : [ 0 , {
150- 'devDependencies' : false ,
151- 'optionalDependencies' : false ,
152- } ] ,
153-
154- // ensure imports point to files/modules that can be resolved
155- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
156- 'import/no-unresolved' : [ 2 , { 'commonjs' : true } ] ,
157-
158- // do not allow a default import name to match a named export
159- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
160- // TODO: enable
161- 'import/no-named-as-default' : 0 ,
162-
163- // disallow require()
164- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
165- 'import/no-commonjs' : 0 ,
166-
167- // disallow AMD require/define
168- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-amd.md
169- 'import/no-amd' : 2 ,
170-
171- // disallow non-import statements appearing before import statements
172- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/imports-first.md
173- // TODO: enable?
174- 'import/imports-first' : [ 0 , 'absolute-first' ] ,
175-
176- // disallow duplicate imports
177- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
178- 'import/no-duplicates' : 2 ,
179-
180- // disallow use of jsdoc-marked-deprecated imports
181- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
182- 'import/no-deprecated' : 0 ,
183-
184- // disallow namespace imports
185- // TODO: enable?
186- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-namespace.md
187- 'import/no-namespace' : 0 ,
188-
189- // warn on accessing default export property names that are also named exports
190- // TODO: enable?
191- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default-member.md
192- 'import/no-named-as-default-member' : 0 ,
193-
194- // No Node.js builtin modules
195- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-nodejs-modules.md
196- 'import/no-nodejs-modules' : 0 ,
197-
198- // Enforce a convention in module import order
199- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
200- // TODO: enable?
201- 'import/order' : [ 0 , {
202- 'groups' : [ 'builtin' , 'external' , 'internal' , 'parent' , 'sibling' , 'index' ] ,
203- 'newlines-between' : 'never' ,
204- } ] ,
205-
206- // Require modules with a single export to use a default export
207- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
208- // TODO: enable
209- 'import/prefer-default-export' : 0 ,
210-
211- // Require a newline after the last import/require in a group
212- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/newline-after-import.md
213- // TODO: enable
214- 'import/newline-after-import' : 0 ,
215-
216- // Forbid mutable exports
217- // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-mutable-exports.md
218- 'import/no-mutable-exports' : 2 ,
219- } ,
220-
221- 'settings' : {
222- 'import/resolver' : {
223- 'node' : {
224- 'extensions' : [ '.js' , '.json' ]
225- }
226- }
121+ 'yield-star-spacing' : [ 2 , 'after' ]
227122 }
228123} ;
0 commit comments