-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (49 loc) · 1.54 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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint/eslint-plugin', 'jest'],
extends: ['eslint:recommended', 'plugin:jest/recommended'],
parserOptions: {
sourceType: 'module',
},
env: {
node: true,
commonjs: true,
browser: true,
es6: true,
},
rules: {
// General
'array-callback-return': ['warn'],
'eqeqeq': ['off', 'always', { null: 'ignore' }],
'new-parens': ['warn'],
'no-array-constructor': ['warn'],
'no-caller': ['warn'],
'no-cond-assign': ['warn', 'always'],
'no-console': ['warn', { allow: ['warn', 'error', 'reportException'] }],
'no-eval': ['warn'],
'no-extend-native': ['warn'],
'no-extra-bind': ['warn'],
'no-implied-eval': ['warn'],
'no-iterator': ['warn'],
'no-lone-blocks': ['warn'],
'no-loop-func': ['warn'],
'no-multi-str': ['warn'],
'no-native-reassign': ['warn'],
'no-new-wrappers': ['warn'],
'no-script-url': ['warn'],
'no-self-compare': ['warn'],
'no-shadow-restricted-names': ['warn'],
'no-template-curly-in-string': ['warn'],
'no-throw-literal': ['warn'],
'no-use-before-define': ['warn'],
'no-useless-computed-key': ['warn'],
'no-useless-concat': ['warn'],
'no-useless-rename': ['warn'],
'no-whitespace-before-property': ['warn'],
// TypeScript
'no-unused-vars': ['off'],
'@typescript-eslint/no-unused-vars': ['warn', { ignoreRestSiblings: true }],
'no-useless-constructor': ['off'],
'@typescript-eslint/no-useless-constructor': ['warn'],
},
};