-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
57 lines (56 loc) · 1.31 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
const npmPackage = require('./package.json');
const resolverMap = Object.keys(npmPackage._moduleAliases).map(function(key) {
return [key, npmPackage._moduleAliases[key]];
});
module.exports = {
env: {
es6: true,
node: true,
mocha: true,
browser: true,
},
plugins: ['mocha'],
extends: ['airbnb-base', 'plugin:vue/recommended'],
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 8,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
rules: {
'comma-dangle': [2, 'always-multiline'],
'consistent-return': 0,
'new-cap': [
1,
{
capIsNewExceptions: ['Class', 'Module', 'Interface', 'RouteMappings', 'Knex', 'Vue'],
},
],
'mocha/no-exclusive-tests': [0, {}],
'no-param-reassign': [0, {}],
'no-underscore-dangle': [0, {}],
'global-require': [0],
'arrow-body-style': [1, 'as-needed'],
'no-global-assign': [0],
'no-shadow': [
0,
{
allow: ['done', 'err', 'res', 'req', 'resolve', 'reject'],
},
],
'jsx-uses-vars': 0,
indent: 0,
'max-len': [2, { code: 100, ignoreStrings: true, ignoreTemplateLiterals: true }],
'no-prototype-builtins': [0],
'no-alert': 0,
},
settings: {
'import/resolver': {
alias: {
map: resolverMap,
},
},
},
};