-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
21 lines (21 loc) · 896 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
extends: [
// add more generic rulesets here, such as:
// 'eslint:recommended',
'plugin:vue/vue3-recommended'
// 'plugin:vue/vue3-essential', // This option doesn't impose formatting rules
// 'plugin:vue/vue3-strongly-recommended', // This option imposes formatting rules on your code to improve readability
],
rules: {
// override/add rules settings here, such as:
'vue/no-unused-vars': 'error',
'object-curly-spacing': ['error', 'always'],
'template-curly-spacing': ['error', 'never'],
'space-in-parens': ['error', 'never'],
'space-infix-ops': ['error', { 'int32Hint': true }],
'semi': ['error', 'always', { 'omitLastInOneLineBlock': true }],
'comma-spacing': ['error', { 'before': false, 'after': true }],
'indent': ['error', 2],
'key-spacing': ['error', { 'afterColon': true, 'beforeColon': false }]
}
};