-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🛠 Tooling: Running lint before and after building project, yields different errors #1478
Comments
@all-contributors please add @rubiesonthesky for maintenance.
|
I've put up a pull request to add @rubiesonthesky! 🎉 I couldn't determine any contributions to add, did you specify any contributions? |
Adds @rubiesonthesky as a contributor for maintenance. This was requested by JoshuaKGoldberg [in this comment](#1478 (comment)) --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
<!-- 👋 Hi, thanks for sending a PR to TypeStat! 💖. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [x] Addresses an existing open issue: fixes #1487 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/TypeStat/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/TypeStat/blob/main/.github/CONTRIBUTING.md) were taken 🐶 ## Overview <!-- Description of what is changed and how the code change does that. --> ~~I'm trying to see, will this fix inconsistency between local and CI lint run~~ This just updates the action version. The inconsistency was because of unrelated reason, see #1478 Co-authored-by: rubiesonthesky <rubiesonthesky>
…eporting <!-- 👋 Hi, thanks for sending a PR to TypeStat! 💖. Please fill out all fields below and make sure each item is true and [x] checked. Otherwise we may not be able to review your PR. --> ## PR Checklist - [x] Addresses an existing open issue: fixes #1478 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/TypeStat/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/TypeStat/blob/main/.github/CONTRIBUTING.md) were taken ## Overview <!-- Description of what is changed and how the code change does that. --> Eslint has different result depending on if `lib`folder is present or not. When it is present, lint errors seems incorrect. Excluding "lib" from eslint fixes the issue. Also, removed mention that you should build the project before linting. This is not done in CI and it seems unnecessary in current state. :) Co-authored-by: rubiesonthesky <rubiesonthesky>
Bug Report Checklist
main
branch of the repository.Overview
When I run
pnpm lint
on project, it reports no errors. But when I runpnpm build
first and thenpnpm lint
, I will get result "1873 problems (1870 errors, 3 warnings)". So using build affects the linting.However, I was able to find a fix for this. Adding
"exclude": ["lib"]
totsconfig.eslint.json
file will remove those extra lint errors that seem to be incorrect.tsconfig.eslint.json
DEVELOPMENT.md
to remove mention that you need to run build before linting.Additional Info
No response
The text was updated successfully, but these errors were encountered: