-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.js
47 lines (47 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
43
44
45
46
47
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',
],
},
],
'valid-jsdoc': 'off',
'func-style': 'off',
/**
* 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-use-before-define': [1],
},
settings: {
'import/resolver': {
'node': {
'extensions': ['.ts', '.tsx', '.js', '.jsx'],
},
},
},
};