question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable linting rules for ES6 imports

See original GitHub issue

I wanted to use eslint-plugin-import but I had to disable it because it doesn’t seem to work very well with eslint-loader workflow.

I would very much welcome help in fixing this. I’m not sure if it’s possible, but it would be awesome to display good errors when users import something that doesn’t exist, or confuse named with default imports.

cc @benmosher and @MoOx as maintainers of the corresponding projects

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Mar 7, 2017
1reaction
MoOxcommented, Jul 26, 2016

For postcss-import we got a similar issue. I solved this by providing an option to specify dependencies, see https://github.com/postcss/postcss-import#adddependencyto I don’t have much time now so a PR is welcome for eslint-loader.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable linting rules for ES6 imports · Issue #181 - GitHub
I wanted to use eslint-plugin-import but I had to disable it because it doesn't seem to work very well with eslint-loader workflow.
Read more >
no-restricted-imports - ESLint - Pluggable JavaScript Linter
This rule allows you to specify imports that you don't want to use in your application. It applies to static imports only, not...
Read more >
eslint-plugin-import - npm
This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, and prevent issues with misspelling of file paths and import ...
Read more >
Linting React JSX with ESLint (in ES6) | egghead.io
We walk through setting up ESLint in a project, using the eslint --init CLI tool with the JSX and ES6 options, writing a...
Read more >
Use ESLint Like a Pro with ES6 and React - Medium
As our code is guarded by linting rules, we are guaranteed to produce consistent ... "module" in case you are planning to use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found