Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bugfix] suggested filenames #3

Merged
merged 6 commits into from
May 30, 2020
Merged

[Bugfix] suggested filenames #3

merged 6 commits into from
May 30, 2020

Conversation

epaew
Copy link
Owner

@epaew epaew commented May 30, 2020

Fixup suggested filenames in ESLint error message.

Before

$ eslint --ext .js,.ts src/utils/preset-case-converters.ts
src/utils/preset-case-converters.ts
  2:1  error  The filename must follow the rule: 'PascalCase'. Should rename to PresetCase-converters.ts  filenames-simple/naming-convention

with .eslintrc.yaml

---
plugins:
  - filenames-simple
rules:
  filenames-simple/naming-convention:
    - error
    - rule: PascalCase

After

$ eslint --ext .js,.ts src/utils/preset-case-converters.ts
src/utils/preset-case-converters.ts
  2:1  error  The filename must follow the rule: 'PascalCase'. Should rename to PresetCaseConverters.ts  filenames-simple/naming-convention

@epaew epaew marked this pull request as ready for review May 30, 2020 02:26
@epaew epaew merged commit 150c6d4 into master May 30, 2020
@epaew epaew deleted the bugfix/suggestion branch May 30, 2020 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant