Skip to content

Commit

Permalink
fix: exclude subfolders of components folder from name rule (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
jd1378 committed May 20, 2023
1 parent 4dc4b3e commit 13fcd64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ module.exports = {
},
},
{
// These pages are not used directly by users so they can have one-word names.
files: [
// These pages are not used directly by users so they can have one-word names.
'**/pages/**/*.{js,ts,vue}',
'**/layouts/**/*.{js,ts,vue}',
'**/app.{js,ts,vue}',
'**/error.{js,ts,vue}'
'**/error.{js,ts,vue}',
// These files should have multiple words in their names as they are within subdirectories.
'**/components/*/**/*.{js,ts,vue}'
],
rules: { 'vue/multi-word-component-names': 'off' }
},
Expand Down

0 comments on commit 13fcd64

Please sign in to comment.