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 9e454c6 commit 8da6eb5Copy full SHA for 8da6eb5
src/textlint-rule-eslint.js
@@ -17,7 +17,7 @@ const reporter = (context, options) => {
17
const filePath = context.getFilePath();
18
const textlintRcFilePath = context.config ? context.config.configFile : null;
19
const textlintRCDir = textlintRcFilePath ? path.dirname(textlintRcFilePath) : process.cwd();
20
- const extname = path.extname(filePath);
+ const extname = filePath ? path.extname(filePath) : undefined;
21
const ESLintOptions = {
22
configFile: path.resolve(textlintRCDir, options.configFile)
23
};
0 commit comments