forked from TotallyInformation/node-drayton-wiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (51 loc) · 1.29 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
/** JavaScript Versions
* 5 is minimum -> Last IE11
* 6 = 2015 -> Node >8.10, iOS12+
* 7 = 2016 -> FF78+,
* 8 = 2017 -> Node 10.9+
* 9 = 2018 -> Node 12.11+
*/
module.exports = {
root: true,
env: {
node: true,
browser: false,
//es6: true,
//es5: true,
},
parserOptions: {
//parser: "babel-eslint",
ecmaVersion: 2017,
// specifying a module sourcetype prevent eslint from marking import statements as errors
//sourceType: 'module',
},
extends: [
// use the recommended rule sets for javascript
// 'eslint:recommended',
//'plugin:prettier/recommended',
],
rules: {
// we should always disable console logs and debugging in production
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-consoledebugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'indent': [
'warn',
4,
{'SwitchCase': 1}
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'warn',
'single'
],
'semi': [
'warn',
'never'
],
'comma-dangle':'off',
'no-unused-vars': 'warn',
},
}