-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.js
68 lines (59 loc) · 1.69 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
// https://eslint.org/docs/user-guide/configuring#using-configuration-files-1
root: true,
// https://eslint.org/docs/user-guide/configuring#specifying-environments
env: {
browser: true,
node: true
},
// https://eslint.org/docs/user-guide/configuring#specifying-parser
parser: 'vue-eslint-parser',
// https://vuejs.github.io/eslint-plugin-vue/user-guide/#faq
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2017,
sourceType: 'module',
project: './tsconfig.json'
},
// https://eslint.org/docs/user-guide/configuring#extending-configuration-files
// order matters: from least important to most important in terms of overriding
// Prettier + Vue: https://medium.com/@gogl.alex/how-to-properly-set-up-eslint-with-prettier-for-vue-or-nuxt-in-vscode-e42532099a9c
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/recommended',
'prettier',
'prettier/vue',
'prettier/@typescript-eslint'
],
// https://eslint.org/docs/user-guide/configuring#configuring-plugins
plugins: ['vue', '@typescript-eslint'],
"rules": {
"import/extensions": 0,
"global-require": 0,
"eol-last": 0,
"no-param-reassign": 0,
"object-curly-newline": 0,
"no-plusplus": 0,
"no-console": "off",
"no-implicity-any": "off",
"no-explicity-any": "off",
"vue/valid-template-root": "off",
"max-len": [
2,
{
"code": 160
}
],
"prefer-destructuring": [
2,
{
"object": true,
"array": false
}
],
"@typescript-eslint/no-empty-interface": 1,
// https://github.com/typescript-eslint/typescript-eslint/issues/103
"@typescript-eslint/no-parameter-properties": 0
},
}