Skip to content

Commit 1032798

Browse files
committed
fix linting of scripts
1 parent 22e5739 commit 1032798

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.eslintrc.js

+2-4
Original file line numberDiff line numberDiff 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
{

packages/gatsby/.eslintrc.js

+8
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)