forked from monicahq/monica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.js
67 lines (66 loc) · 1.65 KB
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import js from '@eslint/js';
import globals from 'globals';
import vue from 'eslint-plugin-vue';
import prettier from 'eslint-config-prettier';
export default [
js.configs.recommended,
...vue.configs['flat/essential'],
...vue.configs['flat/strongly-recommended'],
...vue.configs['flat/recommended'],
prettier,
{
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: globals.browser,
},
files: ['**/*.js', '**/*.vue'],
plugins: {
vue: vue,
},
rules: {
'array-bracket-spacing': ['error', 'never'],
indent: ['error', 2],
'linebreak-style': ['error', 'unix'],
'no-undef': 0,
'no-trailing-spaces': [
'error',
{
ignoreComments: true,
skipBlankLines: true,
},
],
semi: ['error', 'always'],
'semi-spacing': [
'error',
{
before: false,
after: true,
},
],
'semi-style': ['error', 'last'],
'vue/component-name-in-template-casing': 0,
'vue/html-end-tags': 'error',
'vue/html-self-closing': 0,
'vue/no-v-model-argument': 0,
'vue/no-v-html': 0,
'vue/multi-word-component-names': 0,
'vue/max-attributes-per-line': [
'error',
{
singleline: 6,
multiline: 6,
},
],
'vue/singleline-html-element-content-newline': 0,
'vue/no-deprecated-events-api': 0,
'vue/require-default-prop': 0,
'vue/attributes-order': 0,
'vue/next-tick-style': [
// https://eslint.vuejs.org/rules/next-tick-style.html
'error',
'promise',
],
},
},
];