-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.js
45 lines (44 loc) · 1.06 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
const path = require('path');
module.exports = {
parserOptions: {
parser: 'babel-eslint',
},
extends: [
// https://github.com/airbnb/javascript
'airbnb-base',
// https://eslint.vuejs.org/rules/
'plugin:vue/recommended',
],
plugins: [
'import',
'vue',
],
settings: {
'import/resolver': {
webpack: {
config: require('@weepower/cli/lib/service/config/webpack/webpack.config.js'),
},
},
},
rules: {
strict: 0,
indent: ['error', 4],
'eol-last': 0,
'no-plusplus': 0,
'prefer-template': 0,
'import/prefer-default-export': 0,
'space-unary-ops': 0,
'newline-per-chained-call': 0,
radix: 0,
'import/no-dynamic-require': 0,
'no-param-reassign': [
'error',
{
ignorePropertyModificationsFor: [
'state'
],
},
],
'vue/html-indent': ['error', 4],
},
};