-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.15 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
module.exports = {
root: true,
env: {
node: true
},
parser: "vue-eslint-parser",
extends: [
'@vue/typescript',
'eslint:recommended',
'plugin:vue/strongly-recommended'
],
parserOptions: {
parser: {
// Script parser for `<script lang="ts">`
ts: "@typescript-eslint/parser",
js: "@typescript-eslint/parser",
},
},
rules: {
// allow async-await
'generator-star-spacing': 'off',
'vue/require-default-prop': 0,
"vue/no-v-html": 0,
'semi': [2, 'never'],
'vue/html-indent': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-unused-vars': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/max-attributes-per-line': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/html-self-closing': 'off'
},
ignorePatterns: ['src/**/*.d.ts'],
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
'**/tests/unit/*.{j,t}s?(x)'
],
env: {
mocha: true
}
}
]
}