-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (49 loc) · 1.36 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
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
project: ['./packages/**/tsconfig.json', './packages/tests/**/tsconfig.json'],
},
env: {
es6: true,
node: true,
},
plugins: ['@typescript-eslint', 'json', 'prettier', 'jest', 'spellcheck', 'no-floating-promise'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:json/recommended',
'prettier',
'plugin:jest/recommended',
],
globals: {
globalThis: false, // means it is not writeable
},
rules: {
'no-process-exit': 'error',
'no-process-env': 'error',
'no-console': 'error',
'prettier/prettier': 'error',
'no-unused-vars': 'off', // it is the same as @typescript-eslint/no-unused-vars which is on
'jest/no-disabled-tests': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-floating-promise/no-floating-promise': 'error',
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'@typescript-eslint/no-unused-vars': [
2,
{
args: 'none',
},
],
},
},
],
}