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

docs: add Glossary page #18187

Merged
merged 9 commits into from Mar 26, 2024
Merged

Conversation

JoshuaKGoldberg
Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg commented Mar 10, 2024

Prerequisites checklist

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

[x] 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
[ ] Other, please explain:

What changes did you make? (Give an overview)

Adds a /use/core-concepts/glossary page underneath the existing Core Concepts page.

Fixes #17987.

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

I'd originally had sections for general JS concepts (closures, scope, etc.) and common AST nodes (blocks, expressions, etc.) but found it to be a lot of clutter. I'm not confident I got the right balance of what info is useful vs. overkill.

@eslint-github-bot eslint-github-bot bot added the documentation Relates to ESLint's documentation label Mar 10, 2024
Copy link

netlify bot commented Mar 10, 2024

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 6bfa982
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/6602b80209aa4e0008dd0286
😎 Deploy Preview https://deploy-preview-18187--docs-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review March 11, 2024 13:23
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner March 11, 2024 13:23
Co-authored-by: Tanuj Kanti <86398394+Tanujkanti4441@users.noreply.github.com>
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
@Tanujkanti4441
Copy link
Contributor

Tanujkanti4441 commented Mar 13, 2024

How about if we also add information about recommended rules, code paths, code path analysis, eslint directive comments to enable or disable any rule, espree, sourceCode, estraverse, rule-tester, scope, scope-manager (these are just suggestions).

Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking at this! I'm happy to have a place to start rationalizing our naming of things.

One thing I think we should do: don't treat eslintrc like an equal partner to flat config. Let's write this as if eslintrc is a piece of the past, so we don't need to explain how to use it or how to configure it. We should assume flat config is THE config system and go from there.

docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved

A file containing settings for how ESLint should parse files into and run [rules](#rule).

ESLint currently supports two file systems:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I think you meant "config systems" rather than "file systems"?
  2. At this point, I don't think we need to say ESLint supports two config systems. Let's just pretend flat config is the only config system.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewording to just mention the current config system here.

I think it'd still be good to have explicit mentions of "flat" and "legacy" as terms. Other writers have already written a lot of resources that refer to those terms for configs, and users will be coming to this page to learn what they mean. Are you opposed to having ### Flat Config and ### Legacy Config entries?

docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
JoshuaKGoldberg and others added 3 commits March 21, 2024 08:49
Co-authored-by: Nicholas C. Zakas <nicholas@humanwhocodes.com>
Co-authored-by: Tanuj Kanti <86398394+Tanujkanti4441@users.noreply.github.com>
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Just a couple small tweaks.

docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
JoshuaKGoldberg and others added 2 commits March 23, 2024 13:49
Co-authored-by: Nicholas C. Zakas <nicholas@humanwhocodes.com>
nzakas
nzakas previously approved these changes Mar 25, 2024
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think this is a good first draft that we can build upon. Just leaving open for a couple of days to allow others to review.

@mdjermanovic mdjermanovic added the accepted There is consensus among the team that this change meets the criteria for inclusion label Mar 25, 2024
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Outdated Show resolved Hide resolved
docs/src/use/core-concepts/glossary.md Show resolved Hide resolved
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Copy link
Member

@mdjermanovic mdjermanovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@mdjermanovic mdjermanovic merged commit 778082d into eslint:main Mar 26, 2024
19 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the docs-glossary branch March 27, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion documentation Relates to ESLint's documentation
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Docs: Add a Glossary page
4 participants