Skip to content

Commit 5f0d214

Browse files
authored
fix(eslint-config): don't use .eslintrc and set parser settings (#29109)
1 parent 6ec792d commit 5f0d214

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/gatsby/src/utils/eslint-config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ const eslintRequirePreset = require.resolve(`./eslint/required`)
77

88
export const eslintRequiredConfig: CLIEngine.Options = {
99
rulePaths: [eslintRulePaths],
10+
useEslintrc: false,
1011
baseConfig: {
12+
parserOptions: {
13+
ecmaVersion: 2018,
14+
sourceType: `module`,
15+
ecmaFeatures: {
16+
jsx: true,
17+
},
18+
},
1119
globals: {
1220
graphql: true,
1321
__PATH_PREFIX__: true,

0 commit comments

Comments
 (0)