forked from clair-design/clair
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
33 lines (32 loc) · 725 Bytes
/
.eslintrc.js
File metadata and controls
33 lines (32 loc) · 725 Bytes
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 = {
root: true,
plugins: ['jest'],
env: {
browser: true,
node: true,
mocha: true,
node: true,
jest: true,
browser: true,
'jest/globals': true
},
parserOptions: {
parser: 'babel-eslint'
},
extends: [
// wrapper for `plugin:vue/essential` and `standard`
// SEE https://github.com/clair-design/eslint-config-clair
'clair'
],
rules: {
'generator-star-spacing': 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/return-in-computed-property': 'off'
},
globals: {
page: true,
browser: true,
jestPuppeteer: true
}
}