-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy path.eslintrc.js
More file actions
52 lines (52 loc) · 1.36 KB
/
.eslintrc.js
File metadata and controls
52 lines (52 loc) · 1.36 KB
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
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaFeatures: {
jsx: true, // Allows for the parsing of JSX
},
extraFileExtensions: ['.vue'],
},
plugins: [
'vue',
'@typescript-eslint',
],
settings: {
react: {
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
},
},
extends: [
'plugin:vue/recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'react/prop-types': 'off',
quotes: ['error', 'single'],
'comma-dangle': ['error', 'always-multiline'],
'array-bracket-newline': ['error', 'consistent'],
'quote-props': ['error', 'as-needed'],
indent: ['warn', 'tab'],
semi: ['error', 'always'],
'@typescript-eslint/ban-types': 'off',
'vue/script-setup-uses-vars': 'error',
'vue/html-indent': ['warn', 'tab', {
attribute: 1,
baseIndent: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: []
}],
'vue/first-attribute-linebreak': 'off',
'vue/max-attributes-per-line': ['warn', {
singleline: 5,
multiline: 1
}]
},
}