-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
37 lines (37 loc) · 1.1 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
module.exports = {
extends: ['plugin:@typescript-eslint/recommended', '@getflywheel/eslint-config-local'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
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',
],
},
],
'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'],
},
},
},
};