[Documentation] prevent @lingui/macro should be listed in the project's dependencies
See original GitHub issueIs your feature request related to a problem? Please describe. Because @lingui/macro is based on preprocessing files it’s part of dev dependencies. However, because it is used as an import in jsx files, eslint complains
[eslint] '@lingui/macro' should be listed in the project's dependencies, not devDependencies. [import/no-extraneous-dependencies]
Describe the solution you’d like Documentation should describe how to disable this for @lingui/macro only. It would not be undesirable to have to fix this on a file per file basis
Describe alternatives you’ve considered
You could do individual includes //eslint-disable-line
on a line by line basis. But that sucks
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12 (8 by maintainers)
Top Results From Across the Web
eslint should be listed in the project's dependencies, not ...
Solved it with adding this to my .eslintrc : "import/no-extraneous-dependencies": ["error", {"devDependencies": true}].
Read more >@lingui/macro - Reference — LinguiJS documentation
Install babel-plugin-macros as a dev dependency and @lingui/macro as dependency: ... one to avoid import/no-extraneous-dependencies errors in ESLint.
Read more >@lingui/macro | Yarn - Package Manager
Fast, reliable, and secure dependency management. ... @lingui/macro ... All notable changes to this project will be documented in this file.
Read more >@lingui/macro - npm Package Health Analysis | Snyk
All security vulnerabilities belong to production dependencies of direct and indirect packages. ... We found a way for you to contribute to the...
Read more >How to set up internationalization in React using Lingui.js
Let's install all these dependencies in our React project: npm i --save-dev @lingui/cli @lingui/macro @babel/core babel-core@bridge npm i ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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
Got this on the the review of the documentation =) Assign me
Hi everyone!
Anyone update about this issue.
After integrating this eslint plugin, I have got this issue.