Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable import/named on JS-only projects #576

Closed
fregante opened this issue Jul 12, 2021 · 1 comment · Fixed by #601
Closed

Enable import/named on JS-only projects #576

fregante opened this issue Jul 12, 2021 · 1 comment · Fixed by #601

Comments

@fregante
Copy link
Member

xo/config/plugins.cjs

Lines 203 to 205 in f81e933

// Disabled as it doesn't work with TypeScript.
// This issue and some others: https://github.com/benmosher/eslint-plugin-import/issues/1341
// 'import/named': 'error',

I think import/named isn't useful on TS projects because TS already verifies the imports. Can this rule be enabled on JS files only?

@sindresorhus
Copy link
Member

We simplify need to disable it here:

if (options.ts) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants