-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
49 lines (49 loc) · 1.3 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 = {
extends: [
'plugin:@typescript-eslint/recommended',
'@getflywheel/eslint-config-local',
],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'jest',
],
env: {
'jest/globals': true,
},
root: true,
rules: {
'import/no-unresolved': [
2,
{
'ignore': [
/**
* Ignore @getflywheel/local import paths since this modules is injected at runtime
* import/no-unresolved cannot check that these resolve correctly since it can only check what
* is on disk statically without taking any runtime specific things into account
*/
'@getflywheel/local',
],
},
],
/**
* The stock no-use-before-define rule is incompatible with TS. The solution is to disable it and then
* enable a similar rule designed for TS
*
* https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md#how-to-use
*/
'no-use-before-define': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-use-before-define': [1],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'func-style': 'off',
'valid-jsdoc': 'off',
},
settings: {
'import/resolver': {
'node': {
'extensions': ['.ts', '.tsx', '.js', '.jsx'],
},
},
},
};