forked from orkestral/venom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
70 lines (70 loc) · 1.89 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
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended'
],
rules: {
// @todo more restrictive
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/prefer-namespace-keyword': 'off',
'no-async-promise-executor': 'off',
'no-constant-condition': 'off',
'no-empty': ['error', { allowEmptyCatch: true }],
'no-useless-catch': 'off',
'no-useless-escape': 'off',
'prefer-const': 'off'
},
overrides: [
{
files: ['src/lib/**/*.js'],
parserOptions: {
ecmaVersion: 6,
sourceType: 'module'
},
env: {
amd: true,
commonjs: true,
es6: true,
browser: true,
node: false
},
globals: {
axios: true,
Debug: true,
Store: true,
WAPI: true,
webpackChunkwhatsapp_web_client: true,
WWebJS: true
},
rules: {
// @todo more restrictive
'@typescript-eslint/no-array-constructor': 'off',
'no-prototype-builtins': 'off',
'no-redeclare': 'off',
'no-console': 0
}
},
{
files: ['src/lib/**/webpack.*.js', 'src/lib/**/gulpfile.js'],
env: {
browser: false,
node: true
}
}
]
};