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 f896eac commit a6f46f7Copy full SHA for a6f46f7
src/config.js
@@ -4,14 +4,18 @@ const { prefixConfigRules } = require("./plugins");
4
5
// Very heavy-handed, and likely brittle for a million reasons.
6
// This is just a test to see what happens, don't do this at home.
7
-const getComputedConfig = (config) => {
+const getComputedConfig = (baseConfig) => {
8
const cli = new CLIEngine({
9
useEslintrc: false,
10
allowInlineConfig: false,
11
- baseConfig: config,
+ baseConfig,
12
});
13
14
- return cli.getConfigForFile("index.js");
+ const config = cli.getConfigForFile("index.js");
15
+ delete config.filePath;
16
+ delete config.baseDirectory;
17
+
18
+ return config;
19
};
20
21
// Wraps a given config object with the right dependencies for consumption
0 commit comments