[Bug?]: yarn rw lint
fails using local eslint config with typed linting rules after RW 8 upgrade
#11735
Open
1 task done
Labels
bug/needs-info
More information is needed for reproduction
What's not working?
We recently added an
eslintrc.json
to our project as described here. We did that b/c we like to have our named imports sorted (sort-imports
) and enforce types to be explicitly imported as such (@typescript-eslint/consistent-type-imports
).Now after the upgrade from RW 7 to 8.4.1 running
yarn rw lint
throws:I tried all kinds of settings for
parserOptions
mentioned in the typed linting docs to no avail. However, addingto our
.eslintrc.json
makes the error go away – however i'm not sure this is really intended by@redwoodjs/eslint-config
, as i would assume the Redwood team wants to employ@babel/eslint-parser
here for a good reason, which probably was brought in via either #10911 or #11235.How do we reproduce the bug?
Have any custom eslint config (js/cjs/json/whathaveyou) in your project that includes the rule
@typescript-eslint/consistent-type-imports
, for example, our.eslintrc.json
looks as follows:What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: