-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 968 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
module.exports = {
parser: '@typescript-eslint/parser',
extends: ['prettier', 'plugin:prettier/recommended', 'plugin:json/recommended'],
settings: {
'import/resolver': {
node: {
extensions: ['.ts', '.js'],
},
},
},
parserOptions: {
parser: '@typescript-eslint/parser',
project: 'tsconfig.eslint.json',
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint', 'filename-rules'],
rules: {
'jest/no-done-callback': 0,
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'@typescript-eslint/naming-convention': 0,
'prettier/prettier': 'error',
'no-underscore-dangle': ['error', { allow: ['_getHeaders', '_getData', '_unsafeUnwrap', '_unsafeUnwrapErr'] }],
'no-unused-expressions': [
2,
{
allowTernary: true,
},
],
'@typescript-eslint/no-floating-promises': 0,
},
ignorePatterns: ['__mocks__/', 'jest.setup.ts'],
};