File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,9 @@ module.exports = {
3434 } ,
3535 } ,
3636 {
37- files : [ '**/ scripts/**/*.ts' ] ,
37+ files : [ 'scripts/**/*.ts' ] ,
3838 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' ] ,
4240 } ,
4341 } ,
4442 {
Original file line number Diff line number Diff line change @@ -8,5 +8,13 @@ module.exports = {
88 } ,
99 // ignore these because they're not covered by a `tsconfig`, which makes eslint throw an error
1010 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+ ] ,
1119 extends : [ '../../.eslintrc.js' ] ,
1220} ;
You can’t perform that action at this time.
0 commit comments