mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-19 22:45:06 -04:00
refactor(lint): externalization of prettier for simpler IDE support
This commit is contained in:
parent
129f74c371
commit
02c4963531
4 changed files with 10 additions and 10 deletions
|
@ -16,15 +16,6 @@ module.exports = {
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'vue/multi-word-component-names': ['off'],
|
'vue/multi-word-component-names': ['off'],
|
||||||
'prettier/prettier': [
|
'prettier/prettier': ['error'],
|
||||||
'error',
|
|
||||||
{
|
|
||||||
singleQuote: true,
|
|
||||||
semi: true,
|
|
||||||
tabWidth: 2,
|
|
||||||
trailingComma: 'all',
|
|
||||||
printWidth: 120,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
7
.prettierrc
Normal file
7
.prettierrc
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"singleQuote": true,
|
||||||
|
"semi": true,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"trailingComma": "all",
|
||||||
|
"printWidth": 120
|
||||||
|
}
|
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -54,6 +54,7 @@
|
||||||
"@vue/tsconfig": "^0.1.3",
|
"@vue/tsconfig": "^0.1.3",
|
||||||
"c8": "^7.11.0",
|
"c8": "^7.11.0",
|
||||||
"eslint": "^8.5.0",
|
"eslint": "^8.5.0",
|
||||||
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-vue": "^8.2.0",
|
"eslint-plugin-vue": "^8.2.0",
|
||||||
"jsdom": "^19.0.0",
|
"jsdom": "^19.0.0",
|
||||||
"less": "^4.1.2",
|
"less": "^4.1.2",
|
||||||
|
|
|
@ -76,6 +76,7 @@
|
||||||
"@vue/tsconfig": "^0.1.3",
|
"@vue/tsconfig": "^0.1.3",
|
||||||
"c8": "^7.11.0",
|
"c8": "^7.11.0",
|
||||||
"eslint": "^8.5.0",
|
"eslint": "^8.5.0",
|
||||||
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-vue": "^8.2.0",
|
"eslint-plugin-vue": "^8.2.0",
|
||||||
"jsdom": "^19.0.0",
|
"jsdom": "^19.0.0",
|
||||||
"less": "^4.1.2",
|
"less": "^4.1.2",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue