-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c4fbfca
commit ae9a6c7
Showing
7 changed files
with
10,506 additions
and
12,856 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
|
||
{ | ||
// enable auto-linting | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll": "explicit", | ||
"source.fixAll.eslint": "explicit" | ||
}, | ||
// Enable ESlint flat config support | ||
"eslint.experimental.useFlatConfig": true | ||
// ESlint flat config | ||
"eslint.useFlatConfig": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
import withNuxt from './.nuxt/eslint.config.mjs' | ||
|
||
export default withNuxt({ | ||
// config is being passed as an array of separate objects | ||
// as suggested here: https://github.com/nuxt/eslint/discussions/413 | ||
|
||
export default withNuxt([ | ||
|
||
// files to be processed (JS/TS + Vue components) | ||
{ files: ['**/*.js', '**/*.ts', '**/*.vue'] }, | ||
|
||
// `rules` section can follow, where you can change default eslint behaviour if needed | ||
// you can adjust or even turn off some rules if you cannot or don't want to satisfy them | ||
// it is not recommended to do so though | ||
|
||
rules: { | ||
{ | ||
rules: { | ||
// default for this rule is "1", but I find it too restrictive | ||
// https://eslint.vuejs.org/rules/max-attributes-per-line.html | ||
'vue/max-attributes-per-line': ['error', { | ||
singleline: { | ||
max: 4, | ||
}, | ||
multiline: { | ||
max: 3, | ||
}, | ||
}], | ||
'vue/max-attributes-per-line': ['error', { | ||
singleline: { | ||
max: 4, | ||
}, | ||
multiline: { | ||
max: 3, | ||
}, | ||
}], | ||
}, | ||
}, | ||
|
||
}) | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.