@@ -78,12 +78,14 @@ module.exports = {
78
78
"id-match" : "off" , // http://eslint.org/docs/rules/id-match
79
79
"import/default" : "error" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/default.md
80
80
"import/export" : "error" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/export.md
81
+ "import/exports-last" : "off" , // https://github.com/benmosher/eslint-plugin-import/blob/HEAD/docs/rules/exports-last.md
81
82
"import/extensions" : [ "error" , "always" , {
82
83
"js" : "never" ,
83
84
"json" : "never" ,
84
85
"jsx" : "never"
85
86
} ] , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
86
87
"import/first" : [ "error" , "absolute-first" ] , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md
88
+ "import/group-exports" : "off" , // https://github.com/benmosher/eslint-plugin-import/blob/HEAD/docs/rules/group-exports.md
87
89
// Using more than 15 dependencies in one module is a sign that this module is doing too much.
88
90
// You should consider splitting that module into different parts.
89
91
"import/max-dependencies" : [ "warn" , { max : 15 } ] , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/max-dependencies.md
@@ -95,6 +97,12 @@ module.exports = {
95
97
"import/no-amd" : "error" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-amd.md
96
98
"import/no-anonymous-default-export" : "off" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-anonymous-default-export.md
97
99
"import/no-commonjs" : "off" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-commonjs.md
100
+ // Dependency cycles are usually the sign of a problematic architecture and may also
101
+ // have odd execution behavior where values are unexpectedly undefined.
102
+ // There are rare situations where dependency cycles are wanted or necessary.
103
+ // Disable this rule if you're sure that the cyclic dependency is a good idea.
104
+ "import/no-cycle" : "warn" , // https://github.com/benmosher/eslint-plugin-import/blob/HEAD/docs/rules/no-cycle.md
105
+ "import/no-default-export" : "off" , // https://github.com/benmosher/eslint-plugin-import/blob/HEAD/docs/rules/no-default-export.md
98
106
"import/no-deprecated" : "warn" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-deprecated.md
99
107
"import/no-duplicates" : "error" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-duplicates.md
100
108
"import/no-dynamic-require" : "warn" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
@@ -123,8 +131,10 @@ module.exports = {
123
131
{ from : "./client" , target : "./server" }
124
132
]
125
133
} ] , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
134
+ "import/no-self-import" : "error" , // https://github.com/benmosher/eslint-plugin-import/blob/HEAD/docs/rules/no-self-import.md
126
135
"import/no-unassigned-import" : "warn" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unassigned-import.md
127
136
"import/no-unresolved" : [ "error" , { commonjs : true } ] , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-unresolved.md
137
+ "import/no-useless-path-segments" : "error" , // currently undocumented :(, see https://github.com/benmosher/eslint-plugin-import/issues/1032
128
138
"import/no-webpack-loader-syntax" : "warn" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-webpack-loader-syntax.md
129
139
"import/order" : "off" , // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
130
140
// While default exports are better most of the time, there may be cases where you just have one named export
@@ -158,9 +168,11 @@ module.exports = {
158
168
"jsdoc/check-types" : "error" ,
159
169
"jsdoc/newline-after-description" : "error" ,
160
170
"jsdoc/require-description-complete-sentence" : "off" ,
171
+ "jsdoc/require-example" : "off" ,
161
172
"jsdoc/require-hyphen-before-param-description" : "error" ,
162
173
"jsdoc/require-param" : "error" ,
163
174
"jsdoc/require-param-description" : "off" ,
175
+ "jsdoc/require-param-name" : "off" ,
164
176
"jsdoc/require-param-type" : "error" ,
165
177
"jsdoc/require-returns-description" : "off" ,
166
178
"jsdoc/require-returns-type" : "error" ,
0 commit comments