refactor(lint): externalization of prettier for simpler IDE support

This commit is contained in:
Corentin Thomasset 2022-08-03 13:59:23 +02:00 committed by Corentin THOMASSET
parent 129f74c371
commit 02c4963531
4 changed files with 10 additions and 10 deletions

View file

@ -16,15 +16,6 @@ module.exports = {
},
rules: {
'vue/multi-word-component-names': ['off'],
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: true,
tabWidth: 2,
trailingComma: 'all',
printWidth: 120,
},
],
'prettier/prettier': ['error'],
},
};

7
.prettierrc Normal file
View file

@ -0,0 +1,7 @@
{
"singleQuote": true,
"semi": true,
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 120
}

1
package-lock.json generated
View file

@ -54,6 +54,7 @@
"@vue/tsconfig": "^0.1.3",
"c8": "^7.11.0",
"eslint": "^8.5.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-vue": "^8.2.0",
"jsdom": "^19.0.0",
"less": "^4.1.2",

View file

@ -76,6 +76,7 @@
"@vue/tsconfig": "^0.1.3",
"c8": "^7.11.0",
"eslint": "^8.5.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-vue": "^8.2.0",
"jsdom": "^19.0.0",
"less": "^4.1.2",