-
Notifications
You must be signed in to change notification settings - Fork 37
/
.eslintrc.js
56 lines (55 loc) · 1.73 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
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: '@babel/eslint-parser',
allowImportExportEverywhere: true,
requireConfigFile: false
},
env: {
browser: true,
jest: true
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard',
"plugin:jest/recommended"
],
// required to lint *.vue files
plugins: [
'vue',
'jest'
],
// add your custom rules here
rules: {
// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
// TODO enable the rules to achieve lint standard consistency towards projects
'array-bracket-spacing': 'off',
'array-callback-return': 'off',
'dot-notation': 'off',
'jest/expect-expect': 'off',
'jest/no-standalone-expect': 'off',
'jest/no-try-expect': 'off',
'jest/no-conditional-expect': 'off',
'lines-between-class-members': 'off',
'multiline-ternary': 'off',
'no-case-declarations': 'off',
'no-prototype-builtins': 'off',
'node/no-deprecated-api': 'off',
'prefer-const': 'off',
'prefer-regex-literals': 'off',
'quotes': ['off', 'single', { 'allowTemplateLiterals': true }],
'quote-props': 'off',
'vue/no-mutating-props': 'off',
'vue/no-unused-components': 'off',
'vue/no-use-v-if-with-v-for': 'off',
'vue/return-in-computed-property': 'off',
'no-var': 'off'
}
}