forked from apexcharts/apexcharts.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
84 lines (83 loc) · 1.83 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2018,
parser: 'babel-eslint',
sourceType: 'module'
},
env: {
browser: true,
es6: true,
node: true
},
extends: [
'plugin:prettier/recommended',
'plugin:import/errors',
'plugin:import/warnings'
],
plugins: ['promise'],
globals: {
Blob: true,
Image: true,
URL: true,
Apex: true,
ApexCharts: true,
screen: true
},
rules: {
// Remove this when prettier 2.0 is out
'space-before-function-paren': 0, // Do not clash with Prettier
'no-shadow': 1,
'no-undef': 1,
'no-unused-vars': [
1,
{ vars: 'all', args: 'none', ignoreRestSiblings: true }
],
'constructor-super': 1,
'no-const-assign': 1,
'no-dupe-class-members': 1,
'no-var': 1,
'object-shorthand': [1, 'always'],
'prefer-arrow-callback': [
1,
{
allowNamedFunctions: false,
allowUnboundThis: true
}
],
'no-cond-assign': [1, 'always'],
'no-dupe-args': 1,
'no-dupe-keys': 1,
'no-inner-declarations': 1,
'no-invalid-regexp': 1,
'no-sparse-arrays': 1,
'no-unreachable': 1,
'dot-notation': [1, { allowKeywords: true }],
eqeqeq: [1, 'always', { null: 'ignore' }],
'no-eval': 1,
radix: 1,
'no-return-assign': [1, 'always'],
'no-useless-return': 1,
'no-sequences': 1,
'no-extend-native': 1,
'no-fallthrough': 1,
'no-global-assign': [1, { exceptions: [] }],
'no-implied-eval': 1,
'no-lone-blocks': 1,
'no-multi-str': 1,
'no-useless-escape': 1,
'promise/no-promise-in-callback': 1,
'promise/no-callback-in-promise': 1,
'promise/valid-params': 1
},
overrides: [
{
files: ['tests/**/*.js'],
globals: {
describe: true,
it: true,
expect: true
}
}
]
}