Skip to content

Commit 4907899

Browse files
committed
Add parserOptions to .eslintrc for ESLint without Babel config
ESLint was failing because it couldn't find babel.config.js after migrating to SWC. Added requireConfigFile: false and minimal babelOptions to allow ESLint to work without a Babel config file.
1 parent 29a6d48 commit 4907899

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.eslintrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ extends:
55
- plugin:jsx-a11y/recommended
66
- prettier
77

8+
parserOptions:
9+
requireConfigFile: false
10+
babelOptions:
11+
presets:
12+
- "@babel/preset-react"
13+
814
plugins:
915
- react
1016
- jsx-a11y

0 commit comments

Comments
 (0)