2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

start prettier config

This commit is contained in:
Jeff
2020-02-09 12:13:31 -08:00
parent b7c0d539c4
commit 3c9f1efe67
3 changed files with 53 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.{js,vue}]
indent_style = space
indent_size = 2
[*.md]
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2
+28
View File
@@ -0,0 +1,28 @@
module.exports = {
env: {
node: true
},
extends: [
'plugin:vue/recommended',
'plugin:import/errors',
'eslint:recommended',
'prettier',
'plugin:prettier/recommended',
'prettier/vue'
],
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 8,
sourceType: 'module'
},
rules: {
quotes: ['error', 'single'],
indent: ['error', 2],
'no-console': 'off',
'no-debugger': 'error',
semi: ['error', 'always'],
'prettier/prettier': 'error',
'vue/html-self-closing': 'off',
'vue/max-attributes-per-line': 'off'
},
};
+6
View File
@@ -0,0 +1,6 @@
{
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"useTabs": false
}