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.

eslint component ignores --projenrc-ts flag

See original GitHub issue

My projen-generated CDK app eslint task was misbehaving due to a known incompatibility between eslint@8 and the typescript plugin.

While fixing that, I noticed the following, minimal example below:

% npx projen new typescript --projenrc-ts
                      # Typescript ^

...
% npx projen eslint                                                                                                                                                                                                                                                                                                                                                                                                ~/tmp/foo main (v)
🤖 eslint | env: PATH=/Users/.../tmp/f...
🤖 eslint | eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools .projenrc.js
                                                                                    # That's not right ^

The eslint component does not currently consider non-default projenrc types, it’s either the default .js or nothing:

https://github.com/projen/projen/blob/fd76d2ece9fa6f3a3fa666b43c550913995e7ccf/src/eslint.ts#L137-L147

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
kadrachcommented, Jul 25, 2022

I can no longer reproduce this issue with recent versions of projen. Thanks everyone!

0reactions
mrgraincommented, Jul 25, 2022

Agreed, this should be working now. I fixed some related issues in #1926

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ignoring Code - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Poor performance on some projects · Issue #389 - GitHub
We are trying to use typescript-eslint on a pretty large project with 1000+ files. The CLI is very slow (see stats below), which...
Read more >
My create-react-app is failing to compile due to ESLint error
This flag is ignored during production and when they are any git hooks running, which will in turn cause an error when you...
Read more >
Ignoring ESLint - next.config.js
When ESLint is detected in your project, Next.js fails your production build ( next build ) when errors are present. If you'd like...
Read more >
Common React TypeScript ESLint / Lint Errors & Warning ...
Another option is to adjust the .eslintrc rules as well as ignore files and folders with .eslintignore. You can also run the command...
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