2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-24 19:30:37 +03:00

style: prettier

This commit is contained in:
mxie
2018-12-12 15:37:09 +08:00
parent 342a7a18c2
commit 454417e0b6
+13 -11
View File
@@ -17,17 +17,15 @@ module.exports = {
'standard' 'standard'
], ],
// required to lint *.vue files // required to lint *.vue files
plugins: [ plugins: ['vue'],
'vue'
],
// add your custom rules here // add your custom rules here
rules: { rules: {
// allow async-await // allow async-await
'generator-star-spacing': 'off', 'generator-star-spacing': 'off',
// allow debugger during development // allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': ["error", { allow: ["warn", "error"] }], 'no-console': ['error', { allow: ['warn', 'error'] }],
'camelcase': ['off', { properties: 'never' }], camelcase: ['off', { properties: 'never' }],
// "vue/max-attributes-per-line": [2, { // "vue/max-attributes-per-line": [2, {
// "singleline": 1, // "singleline": 1,
// "multiline": { // "multiline": {
@@ -35,11 +33,15 @@ module.exports = {
// "allowFirstLine": true // "allowFirstLine": true
// } // }
// }], // }],
"vue/html-indent": ["error", 2, { 'vue/html-indent': [
"attribute": 1, 'error',
"closeBracket": 0, 2,
"alignAttributesVertically": false, {
"ignores": [] attribute: 1,
}] closeBracket: 0,
alignAttributesVertically: false,
ignores: []
}
]
} }
} }