-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
42 lines (42 loc) · 1.2 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
module.exports = {
"extends": ["airbnb-base", "plugin:jest/recommended"],
"parser": "typescript-eslint-parser",
rules: {
strict: 0,
semi: 2,
"arrow-parens": [2, "always"],
"import/no-unresolved": 0, // because typescript already check for it
"import/extensions": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": ["error", { "devDependencies": ["**/*.test.ts", "**/testApi.ts", '**/*.seed.ts', 'misc/**/*.ts'] }],
"typescript/no-unused-vars": 2,
"arrow-body-style": 0,
"no-console": 0,
"no-await-in-loop": 0,
'no-plusplus': 0,
"no-loop-func": 0,
"no-underscore-dangle": 0,
"import/first": 0,
"global-require": 0,
"no-restricted-syntax": 0,
"no-continue": 0,
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-constant-condition": ["error", { "checkLoops": false }],
"no-return-await": 0
},
"plugins": [
"typescript",
"jest"
],
"env": {
"jest/globals": true
},
overrides: {
files: ['**/*.ts'],
parser: 'typescript-eslint-parser',
rules: {
'no-undef': 'off',
'no-restricted-globals': 'off'
}
}
};