forked from valentsea/draggable-resizable-vue3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (49 loc) · 1.13 KB
/
.eslintrc.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
/* eslint-env node */
module.exports = {
root: true,
extends: [
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/eslint-config-prettier',
],
env: {
'vue/setup-compiler-macros': true,
},
rules: {
'no-prototype-builtins': 'off',
'linebreak-style': ['error', 'windows'],
'vue/require-default-prop': 'off',
semi: ['error', 'never'],
'global-require': 'off',
'no-plusplus': 'off',
'constructor-super': 'off',
'import/extensions': 'off',
'import/prefer-default-export': 'off',
'no-param-reassign': 'off',
'object-curly-newline': [
'error',
{
ObjectExpression: { multiline: true, consistent: true },
ObjectPattern: { multiline: true, consistent: true },
},
],
'prettier/prettier': [
'error',
{
tabWidth: 2,
singleQuote: true,
printWidth: 80,
bracketSpacing: true,
semi: false,
trailingComma: 'all',
endOfLine: 'auto',
useTabs: false,
},
],
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
parser: 'vue-eslint-parser',
}