We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6883230 commit ad4856dCopy full SHA for ad4856d
eslint-rules/no-config-imports.js
@@ -33,7 +33,12 @@ export default {
33
},
34
35
create(context) {
36
- const options = context.options[0] || {};
+ const options = context.options[0];
37
+ if (!options) {
38
+ throw new Error(
39
+ "no-config-imports should be configured with an object with at-least 'configFilePath' key."
40
+ );
41
+ }
42
const configFilePath = path.resolve(options.configFilePath);
43
const allowedFiles = options.allowedFiles || [];
44
0 commit comments