Skip to content

Commit

Permalink
Fix ESLint default filename (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored and sindresorhus committed Jul 6, 2019
1 parent 7410a1e commit e83f8ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rules/filename-case.js
Expand Up @@ -114,7 +114,7 @@ const create = context => {
const chosenCases = getChosenCases(context);
const filenameWithExtension = context.getFilename();

if (filenameWithExtension === '<text>') {
if (filenameWithExtension === '<input>') {
return {};
}

Expand Down
8 changes: 4 additions & 4 deletions test/filename-case.js
Expand Up @@ -73,10 +73,10 @@ ruleTester.run('filename-case', rule, {
testCase('spec/Iss47.100Spec.js', 'pascalCase'),
testCase('spec/I18n.js', 'pascalCase'),
testCase('spec/index.js', 'pascalCase'),
testCase('<text>', 'camelCase'),
testCase('<text>', 'snakeCase'),
testCase('<text>', 'kebabCase'),
testCase('<text>', 'pascalCase'),
testCase(undefined, 'camelCase'),
testCase(undefined, 'snakeCase'),
testCase(undefined, 'kebabCase'),
testCase(undefined, 'pascalCase'),
testCase('src/foo/_fooBar.js', 'camelCase'),
testCase('src/foo/___fooBar.js', 'camelCase'),
testCase('src/foo/_foo_bar.js', 'snakeCase'),
Expand Down

0 comments on commit e83f8ed

Please sign in to comment.