-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.eslintrc.js
93 lines (93 loc) · 2.52 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
module.exports = {
env: {
es6: true,
browser: true
},
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaVersion: 2018,
ecmaFeatures: {
legacyDecorators: true
}
},
plugins: ['vue'],
extends: ['eslint:recommended', 'walmart/configurations/es6-node.js', 'plugin:vue/recommended'],
rules: {
'vue/require-prop-types': 0,
'vue/html-self-closing': 0,
'vue/max-attributes-per-line': [
2,
{
singleline: 3,
multiline: {
max: 1,
allowFirstLine: true
}
}
],
'vue/require-valid-default-prop': 0,
'vue/no-side-effects-in-computed-properties': 0,
'callback-return': 0,
'require-atomic-updates': 0,
'no-eval': 0,
'array-element-newline': ['error', 'consistent'],
'object-curly-spacing': ['error', 'never'],
//"object-curly-newline": ["error", {"ImportDeclaration": "never", "ExportDeclaration": "never", "ObjectExpression": "always", "ObjectPattern": "always"}],
'function-call-argument-newline': ['error', 'consistent'],
'function-paren-newline': ['error', 'never'],
'object-property-newline': ['error', {'allowAllPropertiesOnSameLine': true}],
'no-process-exit': 0,
'no-useless-escape': 0,
'no-param-reassign': 0,
'max-len': ['error', {code: 250}],
'@typescript-eslint/explicit-member-accessibility': 0,
'filenames/match-regex': 0,
'newline-per-chained-call': 0,
'array-bracket-newline': 0,
'array-bracket-spacing': 2,
'max-nested-callbacks': 0,
'max-depth': 0,
'generator-star-spacing': 0,
complexity: 0,
'no-console': 0,
'no-unused-vars': 0,
'filenames/filenames': 0,
'no-use-before-define': 0,
'no-magic-numbers': 0,
camelcase: 0,
'consistent-return': 0,
'max-statements': 0,
'max-params': 0,
'no-unused-expressions': 0,
'no-bitwise': 0,
'no-script-url': 0,
'new-cap': 0,
'no-multi-str': 0,
'space-before-function-paren': 0,
'jquery/no-ajax': 0,
'no-extra-parens': 0,
'func-style': 0,
'no-invalid-this': 0,
'no-return-assign': 0,
'arrow-parens': 0,
'no-confusing-arrow': 0,
'no-case-declarations': 0,
'no-nested-ternary': 0,
'no-labels': 0,
'global-require': 0,
'no-lonely-if': 0,
'no-loop-func': 0,
'no-shadow': 0,
'one-var': 0,
indent: [
'error',
2,
{
SwitchCase: 1,
FunctionDeclaration: {body: 1, parameters: 1}
},
],
quotes: ['error', 'single', {avoidEscape: true}]
}
};