-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
39 lines (39 loc) · 1.01 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
module.exports = {
root: true,
env: {
jest: true,
browser: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'@guardian/eslint-config-typescript',
],
ignorePatterns: ['dist', 'coverage', 'cdk', 'monitoring', 'cypress.config.ts', 'rollup.config.js'],
rules: {
// a lot of the 3rd party code uses these
'no-underscore-dangle': 0,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
project: 'tsconfig.json',
sourceType: 'module',
},
overrides: [
{
files: ['**/*.test.*', '*.config.js'],
rules: {
'@typescript-eslint/no-unsafe-return': 0,
'@typescript-eslint/no-unsafe-call': 0,
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/unbound-method': 0,
'@typescript-eslint/no-unsafe-argument': 0,
},
},
],
};