-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
36 lines (34 loc) · 981 Bytes
/
.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
module.exports = {
env: {
node: true,
es2021: true,
},
extends: [
'eslint-config-bhdouglass',
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['tsconfig.json'],
tsconfigRootDir: __dirname,
},
rules: {
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 1 : 0,
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/prefer-ts-expect-error': 'off',
'@typescript-eslint/array-type': 'off',
'@typescript-eslint/prefer-optional-chain': 'off', // TODO fix these errors
'@typescript-eslint/prefer-nullish-coalescing': 'off', // TODO fix these errors
},
overrides: [
{
files: '*.test.ts',
rules: {
'@typescript-eslint/no-floating-promises': 'off',
},
},
],
};