Skip to content

Commit 13fcd64

Browse files
authoredMay 20, 2023
fix: exclude subfolders of components folder from name rule (#278)
1 parent 4dc4b3e commit 13fcd64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎packages/eslint-config/index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ module.exports = {
6262
},
6363
},
6464
{
65-
// These pages are not used directly by users so they can have one-word names.
6665
files: [
66+
// These pages are not used directly by users so they can have one-word names.
6767
'**/pages/**/*.{js,ts,vue}',
6868
'**/layouts/**/*.{js,ts,vue}',
6969
'**/app.{js,ts,vue}',
70-
'**/error.{js,ts,vue}'
70+
'**/error.{js,ts,vue}',
71+
// These files should have multiple words in their names as they are within subdirectories.
72+
'**/components/*/**/*.{js,ts,vue}'
7173
],
7274
rules: { 'vue/multi-word-component-names': 'off' }
7375
},

0 commit comments

Comments
 (0)
Please sign in to comment.