Skip to content

Commit 98ee4cd

Browse files
committed
fix(config/eslint): disable a couple new type-aware rules for JavaScript
To ensure compatibility with JavaScript without the need for `parserOptions` and a `tsconfig.json` we need to make sure any type-aware rules are disabled for JavaScript files
1 parent 0cbf8e3 commit 98ee4cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/config/helpers/build-eslint.js

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const parserRules = (typescript = false, react = false) => {
3030
'no-throw-literal': isOff(typescript),
3131
'@typescript-eslint/no-implied-eval': isOff(!typescript),
3232
'@typescript-eslint/no-throw-literal': isOff(!typescript),
33+
'@typescript-eslint/dot-notation': isOff(!typescript),
34+
'@typescript-eslint/return-await': isOff(!typescript),
3335
...propTypes,
3436
}
3537
}

0 commit comments

Comments
 (0)