We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5cf8d4 commit 92d75cfCopy full SHA for 92d75cf
cli/environment/eslint-plugin-local/ruleComponentNames.js
@@ -27,7 +27,7 @@ function getExpectedName(filepath) {
27
28
if (isPageComponent.match(filepath)) {
29
return `Page${filepath
30
- .replace(/^.+\/src\/pages\/([\w.]+)(\/index\.js|\.js)/, '$1')
+ .replace(/^.+\/src\/pages((?:\/[A-Z][A-z]*)+).+$/, '$1')
31
.replace(/\//g, '')}`
32
}
33
0 commit comments