forked from vuestorefront/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.js
33 lines (33 loc) · 926 Bytes
/
rules.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
module.exports = {
'no-console': (process.env.NODE_ENV === 'production') ? 'error' : 'off',
'no-debugger': (process.env.NODE_ENV === 'production') ? 'error' : 'off',
'prefer-promise-reject-errors': 'off',
'no-shadow': 'off',
'no-redeclare': 'off',
'no-unused-vars': 'off',
'no-case-declarations': 0,
quotes: ['warn', 'single'],
'no-unused-expressions': ['warn', {
'allowShortCircuit': true,
'allowTernary': true,
}],
'max-len': ['error', {
code: 150,
ignoreComments: true,
ignoreUrls: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
ignoreStrings: true,
}],
'class-methods-use-this': 'off',
'no-new': 0,
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state', // for vuex state
'acc', // for reduce accumulators
'e', // for e.returnvalue
'options', // for decorators
],
}],
};