Last active
May 28, 2023 11:32
-
-
Save BananaAcid/332e15c9dc90aef330a7ed2eaaa81fcf to your computer and use it in GitHub Desktop.
Nuxt esLint basic setup
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
dist | |
node_modules |
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
{ | |
"root": true, | |
"extends": [ | |
"@nuxt/eslint-config" | |
], | |
"rules": { | |
"vue/singleline-html-element-content-newline": [ | |
"error", | |
{ | |
"ignoreWhenNoAttributes": true, | |
"ignoreWhenEmpty": true, | |
"ignores": [ | |
"pre", | |
"textarea", | |
"button" | |
] | |
} | |
] | |
} | |
} |
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
{ | |
"scripts": { | |
"lint": "eslint ." | |
}, | |
"devDependencies": { | |
"@nuxt/eslint-config": "^0.1.1", | |
"eslint": "^8.41.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment