-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.eslintrc.js
More file actions
35 lines (34 loc) · 717 Bytes
/
.eslintrc.js
File metadata and controls
35 lines (34 loc) · 717 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
34
35
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2017,
sourceType: "module"
},
env: {
browser: true,
},
globals: {
'AFRAME': true,
'THREE': true
},
extends: 'standard',
rules: {
'indent': ['error', 2],
'one-var': [
'error',
{
'var': 'never',
'let': 'never',
'const': 'never'
}
],
'semi': [2, 'never'],
'arrow-parens': 0,
'generator-star-spacing': 'off',
'no-debugger': (process.env.NODE_ENV === 'production' || process.env.NODE_ENV === 'homolog') ? 'error' : 'off',
'no-new': 0,
'no-fallthrough': 'off'
}
}