nfour / eslint-config-standard-typescript-prettier

A simple eslint config for modern TypeScript projects.
MIT License
22 stars 8 forks source link

error in type checks on rules in eslintrc.js #8

Closed gnoyixiang closed 2 years ago

gnoyixiang commented 3 years ago

The type checks is not working for @typescript-eslint rules. I cloned and repo and tried on the eslint.js file. It works once I change the import from

export type TsEslintPluginRules = Record<
  keyof typeof import('@typescript-eslint/eslint-plugin/dist/configs/all.json')['rules'],
  any
>;

to

export type TsEslintPluginRules = Record<
  keyof typeof import('@typescript-eslint/eslint-plugin/dist/configs/all.js')['rules'],
  any
>;
nfour commented 3 years ago

Cool will be bumping the deps soon and will test this out with latest.