Enable linting rules for ES6 imports
See original GitHub issueI 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:
- Created 7 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing in favor of https://github.com/facebookincubator/create-react-app/issues/1559.
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.