-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
53 lines (52 loc) · 992 Bytes
/
.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
const globals = {
globals: {
afterAll: false,
afterEach: false,
beforeAll: false,
beforeEach: false,
describe: false,
expect: false,
fit: false,
it: false,
jasmine: false,
jest: false,
pending: false,
pit: false,
require: false,
test: false,
xdescribe: false,
xit: false,
xtest: false,
}
}
module.exports = {
root: true,
env: {
'jest/globals': true,
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
plugins: ['jest','eslint-plugin'],
rules: {
'new-cap': 'off',
'no-useless-constructor': 'off',
'import/no-webpack-loader-syntax': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
},
parserOptions: {
parser: 'babel-eslint'
},
globals: {
'createjs': true
},
overrides: [
{
files: ['*.test.js'],
globals,
},
]
}