-
Notifications
You must be signed in to change notification settings - Fork 87
/
.eslintrc.js
56 lines (56 loc) · 1.56 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
],
rules: {
'no-plusplus': 0,
'class-methods-use-this': 0,
'no-underscore-dangle': 0,
'no-continue': 0,
'no-param-reassign': 0,
'no-bitwise': 0,
'import/no-unresolved': 0,
'import/prefer-default-export': 0,
'import/extensions': 0,
'@typescript-eslint/interface-name-prefix': 0,
'func-names': 0,
'no-console': 0,
'no-await-in-loop': 0,
'no-shadow': 'off',
'@typescript-eslint/no-shadow': ['error'],
'no-useless-constructor': 0,
'@typescript-eslint/no-useless-constructor': ['error'],
indent: 'off',
'@typescript-eslint/indent': ['error', 2],
'no-empty-function': 'off',
'@typescript-eslint/no-empty-function': ['error'],
'@typescript-eslint/no-unused-vars': [
'error', {
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
overrides: [
{
files: '*.spec.ts',
rules: {
'no-undef': 0,
'no-unused-expressions': 0,
// I want to test weird cases
'@typescript-eslint/ban-ts-comment': 0,
'import/no-extraneous-dependencies': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-non-null-assertion': 0,
},
},
],
};