22module . exports = {
33 rules : {
44 // Ensure all imports appear before other statements
5+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/first.md
56 'import/first' : 'error' ,
67
78 // Ensure all exports appear after other statements
9+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/exports-last.md
810 'import/exports-last' : 'off' ,
911
1012 // Report repeated import of the same module in multiple places
13+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-duplicates.md
1114 'import/no-duplicates' : 'error' ,
1215
1316 // Forbid namespace (a.k.a. "wildcard" *) imports
17+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-namespace.md
1418 'import/no-namespace' : 'off' ,
1519
1620 // Ensure consistent use of file extension within the import path
21+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md
1722 'import/extensions' : [
1823 'error' ,
1924 'ignorePackages' ,
@@ -27,39 +32,50 @@ module.exports = {
2732 ] ,
2833
2934 // Enforce a convention in module import order
35+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md
3036 'import/order' : [
3137 'error' ,
3238 { groups : [ [ 'builtin' , 'external' , 'internal' ] ] } ,
3339 ] ,
3440
3541 // Enforce a newline after import statements
42+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/newline-after-import.md
3643 'import/newline-after-import' : 'error' ,
3744
3845 // Prefer a default export if module exports a single name
46+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/prefer-default-export.md
3947 'import/prefer-default-export' : 'error' ,
4048
4149 // Limit the maximum number of dependencies a module can have
50+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/max-dependencies.md
4251 'import/max-dependencies' : 'off' ,
4352
4453 // Forbid unassigned imports
54+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unassigned-import.md
4555 'import/no-unassigned-import' : 'off' ,
4656
4757 // Forbid named default exports
58+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-default.md
4859 'import/no-named-default' : 'error' ,
4960
5061 // Forbid default exports
62+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-default-export.md
5163 'import/no-default-export' : 'off' ,
5264
5365 // Forbid named exports
66+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-named-export.md
5467 'import/no-named-export' : 'off' ,
5568
5669 // Forbid anonymous values as default exports
70+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-anonymous-default-export.md
5771 'import/no-anonymous-default-export' : 'off' ,
5872
5973 // Prefer named exports to be grouped together in a single export declaration
74+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/group-exports.md
6075 'import/group-exports' : 'off' ,
6176
6277 // Enforce a leading comment with the webpackChunkName for dynamic imports
78+ // https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/dynamic-import-chunkname.md
6379 'import/dynamic-import-chunkname' : 'off' ,
6480 } ,
6581} ;
0 commit comments