-
Notifications
You must be signed in to change notification settings - Fork 60
/
.eslintrc.js
45 lines (44 loc) · 932 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
37
38
39
40
41
42
43
44
45
module.exports = {
extends: ['plugin:@typescript-eslint/recommended'],
root: true,
env: {
browser: false,
node: true,
commonjs: true,
es6: true,
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2022,
},
plugins: ['@typescript-eslint', 'import'],
rules: {
'no-console': 'off',
'no-return-await': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-unused-vars': [
'error',
{
caughtErrors: 'none',
},
],
},
overrides: [
{
files: ['**/__tests__/**/*.ts', '**/__mocks__/**/*.ts'],
env: {
jest: true,
node: true,
},
},
{
files: ['acceptance-tests/tests/**/*.ts'],
env: {
jasmine: true,
node: true,
},
},
],
};