Skip to content

Commit

Permalink
fix(eslint-config): add extra file extensions to globs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 21, 2023
1 parent 3452566 commit 9628a34
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,18 @@ module.exports = {
{
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}',
'**/pages/**/*.{js,ts,jsx,tsx,vue}',
'**/layouts/**/*.{js,ts,jsx,tsx,vue}',
'**/app.{js,ts,jsx,tsx,vue}',
'**/error.{js,ts,jsx,tsx,vue}',
// These files should have multiple words in their names as they are within subdirectories.
'**/components/*/**/*.{js,ts,vue}'
'**/components/*/**/*.{js,ts,jsx,tsx,vue}'
],
rules: { 'vue/multi-word-component-names': 'off' }
},
{
// Pages and layouts are required to have a single root element if transitions are enabled.
files: ['**/pages/**/*.{js,ts,vue}', '**/layouts/**/*.{js,ts,vue}'],
files: ['**/pages/**/*.{js,ts,jsx,tsx,vue}', '**/layouts/**/*.{js,ts,jsx,tsx,vue}'],
rules: { 'vue/no-multiple-template-root': 'error' }
}
]
Expand Down

0 comments on commit 9628a34

Please sign in to comment.