-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (46 loc) · 1.62 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
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
// 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.
extends: ['airbnb-base'],
// add your custom rules here
rules: {
'import/extensions': ['error', 'always', {
js: 'never'
}],
// disallow reassignment of function parameters
// disallow parameter object manipulation except for specific exclusions
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'acc', // for reduce accumulators
'e' // for e.returnvalue
]
}],
'import/no-extraneous-dependencies': ['error', {
optionalDependencies: ['test/unit/index.js']
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'max-len': [0],
'no-param-reassign': [0],
'class-methods-use-this': [0],
'no-console': 'off',
'no-use-before-define': ["error", { "functions": false, "classes": true }],
'func-names': [0],
"no-unused-vars": [0],
"no-underscore-dangle": [0],
"consistent-return": [0],
"space-before-function-paren": [0],
"no-void": [0],
"default-case": [0],
"prefer-destructuring": [0],
"no-multi-assign": [0],
"no-plusplus": [0],
"no-restricted-syntax": [0],
"guard-for-in": [0],
"prefer-rest-params": [0],
"no-self-compare": [0],
}
}