File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,9 @@ module.exports = {
34
34
} ,
35
35
} ,
36
36
{
37
- files : [ '**/ scripts/**/*.ts' ] ,
37
+ files : [ 'scripts/**/*.ts' ] ,
38
38
parserOptions : {
39
- // since filepaths are relative to the working directory, we need to go back up to reach the repo root level
40
- // tsconfig
41
- project : [ '../../tsconfig.json' ] ,
39
+ project : [ 'tsconfig.dev.json' ] ,
42
40
} ,
43
41
} ,
44
42
{
Original file line number Diff line number Diff line change @@ -8,5 +8,13 @@ module.exports = {
8
8
} ,
9
9
// ignore these because they're not covered by a `tsconfig`, which makes eslint throw an error
10
10
ignorePatterns : [ 'gatsby-browser.d.ts' , 'gatsby-node.d.ts' ] ,
11
+ overrides : [
12
+ {
13
+ files : [ 'scripts/**/*.ts' ] ,
14
+ parserOptions : {
15
+ project : [ '../../tsconfig.dev.json' ] ,
16
+ } ,
17
+ } ,
18
+ ] ,
11
19
extends : [ '../../.eslintrc.js' ] ,
12
20
} ;
You can’t perform that action at this time.
0 commit comments