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

🏗 Consolidate arg processing and file globbing / ignoring across amp tasks #33505

Merged
merged 1 commit into from
Mar 25, 2021
Merged

🏗 Consolidate arg processing and file globbing / ignoring across amp tasks #33505

merged 1 commit into from
Mar 25, 2021

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Mar 25, 2021

This PR implements the idea that I did a terrible job of describing in #33449 (comment) and #33462 (comment). Now that there is a way to explicitly ignore patterns from an ignore file like .prettierignore or .eslintignore, we can get rid of a bunch of unnecessary code in lint.js.

Bonus cleanup: The logic in eslintRulesChanged() to force-lint the entire repo if even a single rule changed was more trouble than it was worth during local development, so I've removed it. (We already lint all files during CI, there's no reason to annoy developers when they're running amp lint --local_changes.)

@rsimha rsimha requested a review from jridgewell March 25, 2021 22:22
@rsimha rsimha self-assigned this Mar 25, 2021
@rsimha rsimha changed the title 🏗 Consolidate arg processing and file globbing / ignoring across AMP tasks 🏗 Consolidate arg processing and file globbing / ignoring across amp tasks Mar 25, 2021
@rsimha rsimha merged commit f1e45f5 into ampproject:master Mar 25, 2021
@rsimha rsimha deleted the 2021-03-24-Ignore branch March 25, 2021 23:01
rochapablo pushed a commit to rochapablo/amphtml that referenced this pull request Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants