-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
43 lines (42 loc) · 915 Bytes
/
.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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
extends: [
'standard',
'plugin:vue/recommended',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
env: {
browser: true,
},
// check if imports actually resolve
settings: {
'import/resolver': {
node: {
extensions: [
'.js',
'.ts',
],
},
},
},
// add your custom rules here
rules: {
'no-undef': 'off',
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'import/extensions': ['error', 'always', {
js: 'never',
ts: 'never',
'd.ts': 'never',
}],
'object-shorthand': ['off', 'properties'],
'func-names': ['error', 'as-needed'],
'max-len': ['off'],
'comma-dangle': ['error', 'always-multiline'],
'vue/max-attributes-per-line': 'off',
},
}