Skip to content

Commit 8da6eb5

Browse files
committed
fix(rule): default extname should be undefined
1 parent 9e454c6 commit 8da6eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/textlint-rule-eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const reporter = (context, options) => {
1717
const filePath = context.getFilePath();
1818
const textlintRcFilePath = context.config ? context.config.configFile : null;
1919
const textlintRCDir = textlintRcFilePath ? path.dirname(textlintRcFilePath) : process.cwd();
20-
const extname = path.extname(filePath);
20+
const extname = filePath ? path.extname(filePath) : undefined;
2121
const ESLintOptions = {
2222
configFile: path.resolve(textlintRCDir, options.configFile)
2323
};

0 commit comments

Comments
 (0)