Rule proposal: `component-filename-casing`
See original GitHub issueSimilar to name-property-casing
this rule would enforce proper filename casing of vue component.
https://vuejs.org/v2/style-guide/#Single-file-component-filename-casing-strongly-recommended
It should be quite easy to do in eslint. While parsing AST we can check for filename and report the root element if it’s not ok.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:6 (5 by maintainers)
Top Results From Across the Web
file-name-casing - Rule
Rule : file-name-casing. Enforces a consistent file naming convention. Rationale. Helps maintain a consistent style across a file hierarchy. Config.
Read more >File Naming Conventions: simple rules save time and effort
The simple rules apply equally to electronic and physical files and folders. They provide assurance that the correct item is retrieved and cannot...
Read more >File naming and structure - Research Data Management at ...
Descriptive file names are an important part of organizing, sharing, and keeping track of data files. Develop a naming convention based on ...
Read more >File Naming Conventions - HURIDOCS
Underscores (e.g. file_name.xxx) · Dashes (e.g. file-name.xxx) · No separation (e.g. filename.xxx) · Camel case, where the first letter of each section of...
Read more >File naming conventions in reactJS? - Stack Overflow
To name component files, some people follow TitleCase.js and some follow camelCase.js . To name app directories, few people follow camelCase and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think PascalCase is the only right default 😃 it would be common with the way you import components
@michalsnik Is there any progress or any plugins / rules you know of that can enforce
kebab-case
.vue
file names witheslint-plugin-vue
?