prettier setting frontend

This commit is contained in:
Ulf Gebhardt 2019-05-18 14:35:58 +02:00
parent 45694b0f89
commit 35853c049e
No known key found for this signature in database
GPG Key ID: 44C888923CC8E7F3
3 changed files with 12 additions and 7 deletions

View File

@ -20,6 +20,8 @@ module.exports = {
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/component-name-in-template-casing': ['error', 'kebab-case']
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'prettier/prettier': ['error'],
// 'newline-per-chained-call': [2]
}
}

View File

@ -1,6 +0,0 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"bracketSpacing": true
}

9
webapp/.prettierrc.js Normal file
View File

@ -0,0 +1,9 @@
module.exports = {
semi: false,
printWidth: 100,
singleQuote: true,
trailingComma: "all",
tabWidth: 2,
bracketSpacing: true
};