Skip to content

Commit 0af822a

Browse files
docs: move remaining docs files into website (typescript-eslint#6138)
* [WIP] chore: move remaining docs files into website * Updated code comments * Cleaned up README.mds * Added Architecture.md * Removed docs/ prefix from URLs * Massaged internal links * Moved ASTs page to blog post * Corrected inter-links * Added more redircts * Split up Contributing * Fixed Markdown linting * Correctly fixed linting * Went the other way fixing markdown linting * Another cspell complaint * Updated snapshot * A bit more standardization * Casing fixes * One more casing fix * Fixed up many /docs references * chore: added blog article: 'ASTs and TypeScript-ESLint' * a little more merging * Added netlify.toml redirect * Build fixups post-merge
1 parent b9dfc0a commit 0af822a

File tree

65 files changed

+1292
-1454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1292
-1454
lines changed

.github/DISCUSSION_TEMPLATE/rfcs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body:
1616
options:
1717
- label: I have [searched for related discussions](https://github.com/typescript-eslint/typescript-eslint/discussions) and [searched for related issues](https://github.com/typescript-eslint/typescript-eslint/issues) and found none that match my proposal.
1818
required: true
19-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
19+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
2020
required: true
2121
id: required-checks
2222
type: checkboxes

.github/ISSUE_TEMPLATE/01-bug-report-plugin.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body:
1818
required: true
1919
- label: I have [searched for related issues](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+label%3A%22package%3A+eslint-plugin%22) and found none that matched my issue.
2020
required: true
21-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
21+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
2222
required: true
2323
- type: input
2424
id: playground-link

.github/ISSUE_TEMPLATE/02-enhancement-rule-option.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body:
1616
required: true
1717
- label: I have searched the [current rule list](https://typescript-eslint.io/rules/#supported-rules) and found no rules that match my proposal.
1818
required: true
19-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
19+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
2020
required: true
2121
- type: checkboxes
2222
id: rule-fits-the-brief

.github/ISSUE_TEMPLATE/03-enhancement-new-rule.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ body:
1616
required: true
1717
- label: I have searched the [current rule list](https://typescript-eslint.io/rules/#supported-rules) and found no rules that match my proposal.
1818
required: true
19-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
19+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
2020
required: true
2121
- type: checkboxes
2222
id: rule-fits-the-brief

.github/ISSUE_TEMPLATE/04-enhancement-new-base-rule-extension.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ body:
2323
required: true
2424
- label: I have searched the [current extension rule list](https://typescript-eslint.io/rules/#extension-rules) and found no rules that match my proposal.
2525
required: true
26-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
26+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
2727
required: true
2828
- type: checkboxes
2929
id: rule-fits-the-brief

.github/ISSUE_TEMPLATE/05-documentation-request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body:
1212
options:
1313
- label: I have looked for existing [open or closed documentation requests](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+label%3Adocumentation) that match my proposal.
1414
required: true
15-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
15+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
1616
required: true
1717
- type: markdown
1818
attributes:

.github/ISSUE_TEMPLATE/06-bug-report-other.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ body:
1717
required: true
1818
- label: I have [searched for related issues](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+label%3Abug) and found none that matched my issue.
1919
required: true
20-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
20+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
2121
required: true
2222
- type: markdown
2323
id: complexity-note

.github/ISSUE_TEMPLATE/07-enhancement-other.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body:
1515
required: true
1616
- label: I have searched the [current rule list](https://typescript-eslint.io/rules/#supported-rules) and found no rules that match my proposal.
1717
required: true
18-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
18+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
1919
required: true
2020
- type: dropdown
2121
id: package

.github/ISSUE_TEMPLATE/08-bug-report-complex.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ body:
2222
required: true
2323
- label: I have [searched for related issues](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+label%3Abug) and found none that matched my issue.
2424
required: true
25-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
25+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
2626
required: true
2727
- type: textarea
2828
id: description

.github/ISSUE_TEMPLATE/09-config-change.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:
1414
options:
1515
- label: I have [searched for related issues](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+label%3A%22preset+config+change%22+) and found none that match my proposal.
1616
required: true
17-
- label: I have [read the FAQ](https://typescript-eslint.io/docs/linting/troubleshooting) and my problem is not listed.
17+
- label: I have [read the FAQ](https://typescript-eslint.io/linting/troubleshooting) and my problem is not listed.
1818
required: true
1919
- type: textarea
2020
id: description

.github/ISSUE_TEMPLATE/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ blank_issues_enabled: false
22
contact_links:
33
- name: FAQ
44
about: Please check out our FAQ before filing new issues
5-
url: https://typescript-eslint.io/docs/linting/troubleshooting
5+
url: https://typescript-eslint.io/linting/troubleshooting
66
- name: Getting Started Guide
77
about: If you're looking for help setting up check out our getting started guide
8-
url: https://typescript-eslint.io/docs/
8+
url: https://typescript-eslint.io

.github/replies.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ replies:
7373
The configurability also leads to huge fanout [making tests huge, and awful to maintain](https://github.com/typescript-eslint/typescript-eslint/blob/b814e635c1f34139c89e0176727480935dd45cac/packages/eslint-plugin/tests/rules/type-annotation-spacing.test.ts).
7474
\
7575
It's for these reasons that [eslint has frozen all stylistic lint rule options, and will not accept any new ones](https://eslint.org/blog/2020/05/changes-to-rules-policies).
76-
See also our [What About Formatting?](https://typescript-eslint.io/docs/linting/troubleshooting/formatting) docs.
76+
See also our [What About Formatting?](https://typescript-eslint.io/linting/troubleshooting/formatting) docs.
7777
name: Use Prettier

.github/workflows/semantic-pr-titles.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
env:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
with:
19-
# keep this synchronized with the /CONTRIBUTING.md
19+
# keep this synchronized with /docs/contributing/Pull_Requests.mdx
2020
types: |
2121
docs
2222
feat

CONTRIBUTING.md

+2-110
Original file line numberDiff line numberDiff line change
@@ -1,112 +1,4 @@
11
# Contributing
22

3-
Thank you for your interest in contributing to TypeScript ESLint! 💜
4-
5-
> Make sure you read our [Code of Conduct](./CODE_OF_CONDUCT.md) before contributing.
6-
7-
## Raising Issues
8-
9-
So you've got a bug report, documentation request, or feature suggestion?
10-
Great!
11-
12-
Do:
13-
14-
- Make sure you're using the [latest version of our packages](https://github.com/typescript-eslint/typescript-eslint/releases)
15-
- Search [all opened and closed issues](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+) to make sure your issue wouldn't be a duplicate
16-
- Fill out the [appropriate issue template](https://github.com/typescript-eslint/typescript-eslint/issues/new/choose) completely
17-
- Provide as much information as you can
18-
19-
### Questions and Support Requests
20-
21-
We do not have the bandwidth to handle questions or support requests in the issue tracker.
22-
You can instead:
23-
24-
- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript-eslint 'StackOverflow questions tagged with typescript-eslint') using the `typescript-eslint` tag
25-
- Publicly tweet [@tseslint on Twitter](https://twitter.com/tseslint)
26-
27-
> Note that requests to add documentation _are_ allowed, even encouraged! 📝
28-
29-
## Commenting
30-
31-
Please do comment on any open issue if you have more information that would be useful.
32-
33-
Don't:
34-
35-
- Leave useless comments such as _"+1"_ or _"when's this getting fixed?"_ that only act as spam
36-
- If you have nothing to add but enthusiasm and joy, add a reaction such as 👍
37-
- Bring up unrelated topics in existing issues: instead, file a new issue
38-
- Comment on closed PRs: instead, [file a new issue](#raising-issues)
39-
- Comment on commits directly, as those comments are not searchable: instead, file a new issue
40-
41-
## Pull Requests
42-
43-
> See [DEVELOPMENT.md](./DEVELOPMENT.md) for details on how to get started developing locally.
44-
45-
Do:
46-
47-
- Only send pull requests that resolve [open issues marked as `accepting prs`](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+is%3Aopen+label%3A%22accepting+prs%22)
48-
- One exception: extremely minor documentation typos
49-
- Fill out the pull request template in full
50-
- Validate your changes per [Development > Validating Changes](./DEVELOPMENT.md#validating-changes) before un-[drafting your PR](https://github.blog/2019-02-14-introducing-draft-pull-requests)
51-
52-
Don't:
53-
54-
- Force push after opening a PR
55-
- Reasoning: GitHub is not able to track changes across force pushes, which makes it take longer for us to perform incremental reviews
56-
- Comment asking for updates
57-
- Reasoning: Your PR hasn't been forgotten! The volunteer maintainers have limited time to work on the project, and they will get to it as soon as they are able.
58-
59-
### Raising a PR
60-
61-
Once your changes are ready, you can raise a PR! 🙌
62-
The title of your PR should match the following format:
63-
64-
```text
65-
<type>(<package>): <short description>
66-
```
67-
68-
You can find more samples of good past PR titles in [recent commits to `main`](https://github.com/typescript-eslint/typescript-eslint/commits/main).
69-
70-
```text
71-
fix(scope-manager): correct handling for class static blocks
72-
```
73-
74-
```text
75-
docs: Fix links to getting started in README.md
76-
```
77-
78-
Within the body of your PR, make sure you reference the issue that you have worked on, as well as pointing out anything of note you wish us to look at during our review.
79-
80-
> We do not care about the number, or style of commits in your history, because we squash merge every PR into `main`.
81-
> Feel free to commit in whatever style you feel comfortable with.
82-
83-
#### type
84-
85-
Must be one of the following:
86-
87-
<!-- Keep this synchronized with /.github/workflows/semantic-pr-titles.yml -->
88-
89-
- `docs` - if you only change documentation, and not shipped code
90-
- `feat` - for any new functionality additions
91-
- `fix` - for any bug fixes that don't add new functionality
92-
- `test` - if you only change tests, and not shipped code
93-
- `chore` - anything else
94-
95-
#### package
96-
97-
The name of the package you have made changes within, (e.g. `eslint-plugin`, `parser`, `typescript-estree`).
98-
If you make significant changes across multiple packages, you can omit this (e.g.
99-
`feat: foo bar`).
100-
101-
#### short description
102-
103-
A succinct title for the PR.
104-
105-
### Addressing Feedback and Beyond
106-
107-
With your PR raised and the CI passing, your PR will [wait in the queue to be reviewed](https://github.com/typescript-eslint/typescript-eslint/pulls?q=is%3Apr+is%3Aopen+sort%3Acreated-asc+-label%3A%22breaking+change%22+-label%3A%22awaiting+response%22+-label%3A%221+approval%22+-label%3A%22DO+NOT+MERGE%22+status%3Asuccess).
108-
We generally review PRs oldest to newest, unless we consider a newer PR higher priority (e.g. if it's a bug fix).
109-
110-
Once we have reviewed your PR, we will provide any feedback that needs addressing.
111-
If you feel a requested change is wrong, don't be afraid to discuss with us in the comments.
112-
Once the feedback is addressed, and the PR is reviewed, we'll ensure the branch is up to date with `main`, and merge it for you.
3+
See **https://typescript-eslint.io/contributing** for our contributing guidelines.
4+
Thanks! 💖

DEVELOPMENT.md

+2-67
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,4 @@
11
# Development
22

3-
Thank you for your interest in developing on TypeScript ESLint! ❤️‍🔥
4-
5-
> See [CONTRIBUTING.md](./CONTRIBUTING.md) for details on our general contribution flows.
6-
7-
## Setup
8-
9-
After [forking the repo from GitHub](https://help.github.com/articles/fork-a-repo):
10-
11-
```shell
12-
git clone https://github.com/<your-name-here>/typescript-eslint
13-
cd typescript-eslint
14-
yarn
15-
```
16-
17-
Postinstall scripts will then fully build your repository locally with (`yarn build`).
18-
At this point, you're ready to develop! 🚀
19-
20-
## Builds
21-
22-
You can run `yarn build` in any package or in the root to build the package(s).
23-
24-
Keep in mind that packages generally depend on each other's built outputs, and you'll need to `yarn build` dependents for their consumers to receive any new local changes.
25-
For example, if you make a change within `scope-manager` and want to use it in `eslint-plugin`, you'll need to `yarn build` either from the root or within `packages/scope-manager`.
26-
27-
## Validating Changes
28-
29-
The following checks are all run on pull requests automatically.
30-
You can also perform them locally.
31-
32-
### Formatting
33-
34-
We use [Prettier](https://prettier.io) to auto-format code.
35-
A Git pre-commit hook should apply it to all committed changes.
36-
ALternately, you can run `yarn format` in any package or in the root.
37-
38-
### Linting
39-
40-
All code changes must pass ESLint.
41-
You can run `yarn lint` in any package or in the root.
42-
43-
### Proofreading
44-
45-
Changes must pass two linters for documentation and naming, the commands for which may be run from the root:
46-
47-
- `yarn check-spelling`: [CSpell](https://cspell.org), for all code
48-
- `yarn lint-markdown`: [Markdownlint](https://github.com/DavidAnson/markdownlint), for Markdown documentation
49-
50-
### Tests
51-
52-
All code changes should ideally be unit tested if possible.
53-
You can run `yarn test` in any package to run its tests.
54-
55-
> [VS Code launch tasks](https://code.visualstudio.com/docs/editor/tasks) tasks are provided that allow [visual debugging](https://code.visualstudio.com/docs/editor/debugging) tests
56-
57-
#### Code Coverage
58-
59-
We aim for 100% code coverage in all PRs when possible, except in the `website/` package.
60-
Coverage reports are be generated locally whenever `yarn test` is run.
61-
62-
The `codecov` bot should also comment on your PR with the percentage, as well as links to the line-by-line coverage of each file touched by your PR.
63-
64-
### Type Checking
65-
66-
All code should pass TypeScript type checking.
67-
You can run `yarn typecheck` in any package or in the root to run `tsc`.
68-
69-
> Run `yarn typecheck -w` to start `tsc` in watch mode.
3+
See **https://typescript-eslint.io/contributing/development** for our development instructions.
4+
Thanks! 💖

0 commit comments

Comments
 (0)