Skip to content
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

fix(typescript): eslint task lints projenrcts #1832

Merged
merged 1 commit into from
May 9, 2022
Merged

fix(typescript): eslint task lints projenrcts #1832

merged 1 commit into from
May 9, 2022

Conversation

andrestone
Copy link
Contributor

fixes #1831

BREAKING CHANGE: EslintOptions.lintProjenRc is now a string

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented May 6, 2022

Codecov Report

Merging #1832 (6c1a31a) into main (d90284c) will increase coverage by 5.53%.
The diff coverage is 92.09%.

@@            Coverage Diff             @@
##             main    #1832      +/-   ##
==========================================
+ Coverage   88.06%   93.59%   +5.53%     
==========================================
  Files         132      158      +26     
  Lines        5109    27861   +22752     
  Branches     1207     2166     +959     
==========================================
+ Hits         4499    26077   +21578     
- Misses        610     1784    +1174     
Impacted Files Coverage Δ
src/java/index.ts 100.00% <ø> (ø)
src/python/index.ts 100.00% <ø> (ø)
src/python/requirements-file.ts 80.51% <ø> (+16.23%) ⬆️
src/python/setuppy.ts 100.00% <ø> (ø)
src/python/setuptools.ts 100.00% <ø> (ø)
src/python/venv.ts 84.48% <ø> (+19.77%) ⬆️
src/readme.ts 100.00% <ø> (ø)
src/release/bump-version.ts 99.32% <ø> (+0.69%) ⬆️
src/release/index.ts 100.00% <ø> (ø)
src/release/publisher.ts 94.87% <ø> (-4.36%) ⬇️
... and 271 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3937761...6c1a31a. Read the comment docs.

src/javascript/eslint.ts Outdated Show resolved Hide resolved
@andrestone andrestone requested a review from Chriscbr May 9, 2022 08:41
@mergify mergify bot merged commit dae499b into projen:main May 9, 2022
mergify bot pushed a commit that referenced this pull request Jun 13, 2022
Closes #1903 

The change in #1832 inadvertently removed required configuration for files on `projenrc` to be linted. This change restores that config by once again creating the `ProjenrcTs` component _after_  the `Eslint` component. It also adds `projenrc` as a `testDir`, so files will be linted by the eslint task.


This PR is aiming to resolve #1903 with minimal changes. I felt that the current implementation of the `Eslint` component is mixing responsibilities a bit (is it aware of projen, how much is it aware?) and makes some assumptions about what it thinks it knows about projen. **tl;dr I didn't really want to get into it.** But please let me know if you do want me to!


---
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

eslint task doesn't lint projenrc when using projenrc-ts
3 participants