eslint-config-xo-typescript icon indicating copy to clipboard operation
eslint-config-xo-typescript copied to clipboard

Should we include the Eslint rules override from @typescript-eslint/eslint-recommended ?

Open pvdlg opened this issue 5 years ago • 1 comments

The @typescript-eslint/eslint-plugin provides a recommended config which turn off some Eslint rules that conflicts or doesn't work well with TypeScript.

For example in a types.d.ts file with the following code:

type MyType = {};

export {MyType};

the rules rule no-undef is incorrectly triggered.

I think this config is the right place to disable those rules. We could even just include plugin:@typescript-eslint/eslint-recommended here.

What do you think @sindresorhus ?

pvdlg avatar Mar 25 '20 05:03 pvdlg

I think this config is the right place to disable those rules. We could even just include plugin:@typescript-eslint/eslint-recommended here.

👍

sindresorhus avatar Mar 26 '20 18:03 sindresorhus