forked from XiongAmao/vue-easy-lightbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
58 lines (58 loc) · 1.61 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-strongly-recommended',
'@vue/eslint-config-typescript/recommended'
],
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 'latest',
ecmaFeatures: {
jsx: true
}
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
semi: ['error', 'never'],
indent: 'off',
'space-before-function-paren': 'off',
'vue/array-bracket-spacing': 'error',
'vue/arrow-spacing': 'error',
'vue/block-spacing': 'error',
'vue/brace-style': 'error',
'vue/camelcase': 'error',
'vue/comma-dangle': 'error',
'vue/component-name-in-template-casing': [
'error',
'kebab-case',
{
registeredComponentsOnly: true,
ignores: []
}
],
'vue/eqeqeq': 'error',
'vue/key-spacing': 'error',
'vue/match-component-file-name': 'error',
'vue/object-curly-spacing': [
'error',
'always',
{ arraysInObjects: true, objectsInObjects: true }
],
'vue/html-self-closing': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/name-property-casing': 'off',
'vue/attribute-hyphenation': ['error', 'never'],
'vue/singleline-html-element-content-newline': 'off',
'vue/multi-word-component-names': 'off',
'lines-between-class-members': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
}
}