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

chore: enable linting .eleventy.js again #16274

merged 1 commit into from Sep 5, 2022

chore: enable linting .eleventy.js again #16274

merged 1 commit into from Sep 5, 2022


Copy link

@mdjermanovic mdjermanovic commented Sep 4, 2022

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:

lint:docsjs script is intended to lint docs/.eleventy.js file. Currently, after switching to eslint.config.js, it doesn't lint that file. This went unnoticed because of #16260 (the script runs eslint docs command; the command doesn't really lint any files in docs, but it mistakenly lints files outside docs, so it doesn't trigger the "no files matching the pattern" error).

The eslint docs command skips docs/.eleventy.js because:

What changes did you make? (Give an overview)

  • Update the command to lint docs/.eleventy.js directly. This works because it doesn't go through globby so there are no dotfile and unignore issues.
  • Synced eslint.config.js with .eslintrc.js in regard to eslint-plugin-eslint-plugin rules. In particular, the rules are removed from the top level because they are detecting docs/.eleventy.js as an eslint rule file so there are false positives.

Is there anything you'd like reviewers to focus on?

@eslint-github-bot eslint-github-bot bot added triage An ESLint team member will look at this issue soon chore This change is not user-facing labels Sep 4, 2022
Copy link

netlify bot commented Sep 4, 2022

Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit 81ce16f
🔍 Latest deploy log

nzakas approved these changes Sep 5, 2022
Copy link

@nzakas nzakas left a comment

LGTM. Thanks!

@nzakas nzakas merged commit 67db10c into main Sep 5, 2022
20 checks passed
@nzakas nzakas deleted the sync-eslint-config branch Sep 5, 2022
nzakas pushed a commit that referenced this pull request Sep 5, 2022
btmills pushed a commit that referenced this pull request Sep 12, 2022
* fix: Ensure globbing doesn't include subdirectories

Fixes #16260

* docs: copy & use main package version in docs on release (#16252)

* docs: update docs package ver from main on release

fixes #16212

* docs: read docs package ver instead of main

fixes #16212

* docs: add newline to updated docs package json

Co-authored-by: Milos Djermanovic <>

* docs: update docs package json version

Co-authored-by: Milos Djermanovic <>

* chore: enable linting `.eleventy.js` again (#16274)

* Fix filtering of globs

* Enable partial matching of globs

Co-authored-by: Jugal Thakkar <>
Co-authored-by: Milos Djermanovic <>
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Sep 22, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
| [eslint]( ([source]( | devDependencies | patch | [`8.23.0` -> `8.23.1`]( |


### Release Notes


### [`v8.23.1`](

[Compare Source](eslint/eslint@v8.23.0...v8.23.1)

#### Bug Fixes

-   [`b719893`](eslint/eslint@b719893) fix: Upgrade eslintrc to stop redefining plugins ([#&#8203;16297](eslint/eslint#16297)) (Brandon Mills)
-   [`734b54e`](eslint/eslint@734b54e) fix: improve autofix for the `prefer-const` rule ([#&#8203;16292](eslint/eslint#16292)) (Nitin Kumar)
-   [`6a923ff`](eslint/eslint@6a923ff) fix: Ensure that glob patterns are normalized ([#&#8203;16287](eslint/eslint#16287)) (Nicholas C. Zakas)
-   [`c6900f8`](eslint/eslint@c6900f8) fix: Ensure globbing doesn't include subdirectories ([#&#8203;16272](eslint/eslint#16272)) (Nicholas C. Zakas)

#### Documentation

-   [`16cba3f`](eslint/eslint@16cba3f) docs: fix mobile double tap issue ([#&#8203;16293](eslint/eslint#16293)) (Sam Chen)
-   [`e098b5f`](eslint/eslint@e098b5f) docs: keyboard control to search results ([#&#8203;16222](eslint/eslint#16222)) (Shanmughapriyan S)
-   [`1b5b2a7`](eslint/eslint@1b5b2a7) docs: add Consolas font and prioritize resource loading ([#&#8203;16225](eslint/eslint#16225)) (Amaresh  S M)
-   [`1ae8236`](eslint/eslint@1ae8236) docs: copy & use main package version in docs on release ([#&#8203;16252](eslint/eslint#16252)) (Jugal Thakkar)
-   [`279f0af`](eslint/eslint@279f0af) docs: Improve id-denylist documentation ([#&#8203;16223](eslint/eslint#16223)) (Mert Ciflikli)

#### Chores

-   [`38e8171`](eslint/eslint@38e8171) perf: migrate rbTree to js-sdsl ([#&#8203;16267](eslint/eslint#16267)) (Zilong Yao)
-   [`1c388fb`](eslint/eslint@1c388fb) chore: switch nyc to c8 ([#&#8203;16263](eslint/eslint#16263)) (唯然)
-   [`67db10c`](eslint/eslint@67db10c) chore: enable linting `.eleventy.js` again ([#&#8203;16274](eslint/eslint#16274)) (Milos Djermanovic)
-   [`42bfbd7`](eslint/eslint@42bfbd7) chore: fix `npm run perf` crashes ([#&#8203;16258](eslint/eslint#16258)) (唯然)



### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

 **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.


 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.


This PR has been generated by [Renovate Bot](

Co-authored-by: cabr2-bot <>
Reviewed-by: Epsilon_02 <>
Co-authored-by: Calciumdibromid Bot <>
Co-committed-by: Calciumdibromid Bot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
chore This change is not user-facing triage An ESLint team member will look at this issue soon
None yet

Successfully merging this pull request may close these issues.

None yet

3 participants