-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[core] Add eslint rule to force default export equals to filename in doc #3674
Conversation
These are the results for the performance tests:
|
.eslintrc.js
Outdated
files: ['docs/src/pages/**/*.js', 'docs/src/pages/**/*.tsx'], | ||
rules: { | ||
'filenames/match-exported': ['error', [null, 'kebab', 'snake']], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping kebab
and snake
makes it to still suggest other names, although they can't be used because of another rule:
Maybe?
files: ['docs/src/pages/**/*.js', 'docs/src/pages/**/*.tsx'], | |
rules: { | |
'filenames/match-exported': ['error', [null, 'kebab', 'snake']], | |
files: ['docs/src/pages/components/**/*.js', 'docs/src/pages/components/**/*.tsx'], | |
rules: { | |
'filenames/match-exported': ['error', [null]], |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@alexfauquette Oh wow, nice! Can we move this to |
This should never append again after #3564 (comment)