Skip to content

Commit

Permalink
Merge pull request #31 from leukeleu/add-nuxt3-config
Browse files Browse the repository at this point in the history
Add base nuxt3 config
  • Loading branch information
twesterhuis authored Mar 20, 2023
2 parents 904b484 + 8a037aa commit f781125
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configs/nuxt2.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module.exports = {
},
overrides: [
{
// These file names are part of the file based routing in Nuxt
// and are not used directly by users.
files: [
'**/pages/**/*.{js,ts,vue}',
'**/layouts/**/*.{js,ts,vue}',
Expand Down
23 changes: 23 additions & 0 deletions configs/nuxt3.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
extends: [require.resolve('./vue3')],
overrides: [
{
// These file names are part of the file based routing in Nuxt
// and are not used directly by users.
files: [
'**/pages/**/*.{js,ts,vue}',
'**/layouts/**/*.{js,ts,vue}',
'**/app.{js,ts,vue}',
'**/error.{js,ts,vue}',
],
rules: { 'vue/multi-word-component-names': 'off' },
},
// Nuxt uses auto imports. This will result in 'no-undef' errors when the code is valid.
{
files: ['*.vue'],
rules: {
'no-undef': 'off',
},
},
],
}

0 comments on commit f781125

Please sign in to comment.