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.

[Documentation] prevent @lingui/macro should be listed in the project's dependencies

See original GitHub issue

Is 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
semoalcommented, Oct 20, 2020

Got this on the the review of the documentation =) Assign me

1reaction
dshuvalovcommented, May 13, 2020

Hi everyone!

Anyone update about this issue.

After integrating this eslint plugin, I have got this issue.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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