Skip to content

Starting version of website with docs pages and rules #4099

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

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
e7e80a2
docs: generate simple documentation page
armano2 Feb 27, 2021
bacfc85
chore: add netlify config
armano2 Feb 27, 2021
e4e3a18
fix: update netlify config
armano2 Feb 27, 2021
17f3ef4
fix: remove netlify.toml
armano2 Feb 27, 2021
9bb88e5
fix: add sponsors to start page and update page
armano2 Feb 27, 2021
d80ce4a
fix: correct few minor issues
armano2 Feb 28, 2021
21a47b0
docs: style improvements on homepage
armano2 Feb 28, 2021
b0c94cc
docs: add missing dark mode logo
armano2 Feb 28, 2021
6102904
docs: use svg files for github icon
armano2 Feb 28, 2021
ba2f030
docs: update homepage and fix hero styles
armano2 Feb 28, 2021
695744d
docs: add note about eslint core rules
armano2 Feb 28, 2021
b89d9ff
docs: fix styles for dark theme
armano2 Feb 28, 2021
84c88b1
docs: add tslint migration guide
armano2 Feb 28, 2021
160d08d
docs: update docs
armano2 Feb 28, 2021
05aa9b2
docs: update links
armano2 Feb 28, 2021
c335534
docs: add dynamic github url for testing
armano2 Feb 28, 2021
bdf68dd
docs: wip editor
armano2 Feb 28, 2021
2772d85
docs: create basic repl
armano2 Mar 2, 2021
68f35db
fix: add missing package
armano2 Mar 2, 2021
ad76d50
fix: add missing typescript
armano2 Mar 2, 2021
242e431
fix: correct build for ssr
armano2 Mar 2, 2021
fbcfc41
fix: correct build for ssr and loading all rules
armano2 Mar 2, 2021
75fc69d
fix: add support for quickfix
armano2 Mar 2, 2021
567285d
fix: refactor update markers
armano2 Mar 2, 2021
35c7c3b
fix: setup workspaces and migrate code to typescript
armano2 Mar 2, 2021
241dd18
fix: correct build when in monorepo
armano2 Mar 2, 2021
55fad3d
fix: reduce number of files that has to be loaded
armano2 Mar 2, 2021
cbe134e
fix: yarn lock after depencency update
armano2 Mar 2, 2021
718de5e
Merge branch 'fix/yarn-lock'
armano2 Mar 2, 2021
af58a83
Merge remote-tracking branch 'origin/master' into docs-page
armano2 Mar 2, 2021
960fabf
fix: implement saving/restoring configuration
armano2 Mar 2, 2021
131e80c
docs: fix saving and restoring query params
armano2 Mar 2, 2021
382cce1
fix: optimize build size
armano2 Mar 3, 2021
940e5be
fix: disable double build on netlify
armano2 Mar 3, 2021
e6e8a8d
docs: add basic styles to playground
armano2 Mar 3, 2021
caba2c8
fix: add some imports and simplify code
armano2 Mar 3, 2021
012ce87
feat: refactor codebase to use sandbox
armano2 Mar 4, 2021
dc30446
fix: correct issue with typescript
armano2 Mar 4, 2021
3fbcd9d
fix: update playground to support options selector
armano2 Mar 4, 2021
ec08000
fix: replace text field with dropdown
armano2 Mar 4, 2021
b325278
chore: drop no longer needed files
armano2 Mar 4, 2021
153110b
build: correct issue with build
armano2 Mar 4, 2021
770f197
fix: correct code review
armano2 Mar 5, 2021
22933ee
fix: correct linting issues
armano2 Mar 5, 2021
36a1e61
chore: fix one more code review
armano2 Mar 5, 2021
eb6d737
fix: correct markdown lint issues
armano2 Mar 5, 2021
b0f3b00
test: update eslint doc validation
armano2 Mar 5, 2021
245bc6d
test: add missing spelling issues
armano2 Mar 5, 2021
0692feb
Merge remote-tracking branch 'refs/remotes/origin/master'
armano2 Mar 5, 2021
93208c2
chore: update info about tslint
armano2 Mar 5, 2021
b6da4e1
chore: add multi new line within notes
armano2 Mar 5, 2021
57d6b14
chore: fix linting issue
armano2 Mar 5, 2021
5dc55b3
chore: fix linting issue
armano2 Mar 5, 2021
a531c48
Merge branch 'master' into docs-page
armano2 Mar 6, 2021
fe35835
docs(website): add missing types and update TSLINT.md
armano2 Mar 6, 2021
7ac0fd9
docs(website): add ast viewer to repl
armano2 Mar 7, 2021
0989f05
docs(website): fix small issue with updating layout
armano2 Mar 7, 2021
8948138
docs(website): add basic interactivity to ast viewer
armano2 Mar 7, 2021
89e5a48
docs(website): correct few color issues
armano2 Mar 7, 2021
c4ef5bb
docs(website): fix issue with filtering values
armano2 Mar 7, 2021
1885bac
docs(website): fix new issue with services
armano2 Mar 7, 2021
0d99112
docs(website): add handling of fatal messages
armano2 Mar 8, 2021
9e8bdfe
docs(website): correct jsx handling
armano2 Mar 8, 2021
ff01d81
docs(website): remove unnecessary eslint disable
armano2 Mar 8, 2021
efe2661
docs(website): fix history manipulation and loading state
armano2 Mar 8, 2021
93a184d
docs(website): implement simple mouse hover highlight
armano2 Mar 8, 2021
f2202b0
docs(website): reset decoration on error
armano2 Mar 8, 2021
09c2dab
docs(website): improve ast viewer
armano2 Mar 8, 2021
58e4343
docs(website): minor style fix
armano2 Mar 8, 2021
035b82c
docs(website): improve performance
armano2 Mar 9, 2021
b532dff
Merge remote-tracking branch 'origin/master' into docs-page
armano2 Mar 9, 2021
c9467c4
chore(website): update docusaurus
armano2 Mar 10, 2021
c1a1150
Merge branch 'master'
armano2 Mar 17, 2021
bcc0808
docs(website): update
armano2 Mar 17, 2021
277283e
docs(website): update homepage
armano2 Mar 17, 2021
d3c4cf6
docs(website): enable formating of jsx and css and add simple modal
armano2 Mar 18, 2021
e49f3b7
docs(website): update docusaurus to 2.0.0-alpha.72
armano2 Mar 18, 2021
69fa84b
docs(website): add ability to pick typescript version in repl
armano2 Mar 18, 2021
38c0014
docs(website): fix ssr build
armano2 Mar 18, 2021
6b893bd
docs(website): ensure that default typescript version is correctly se…
armano2 Mar 18, 2021
c8bc133
Merge remote-tracking branch 'refs/remotes/origin/master'
armano2 Mar 19, 2021
2abb092
docs(website): correct issue with reloading page after ts version change
armano2 Mar 19, 2021
6286b12
docs(website): correct minor warnings and enable spelling checks
armano2 Mar 21, 2021
b192a43
Merge branch 'master' into HEAD
armano2 Nov 4, 2021
34e7463
docs: update website
armano2 Nov 4, 2021
3f1aa16
Experiment: trim version of website
JoshuaKGoldberg Nov 7, 2021
c84ddbb
Apply suggestions from code review
JoshuaKGoldberg Nov 7, 2021
101c798
chore: moved website into packages/
JoshuaKGoldberg Nov 7, 2021
5f423d9
chore: a few more touchups
JoshuaKGoldberg Nov 7, 2021
d9a5d03
chore: added start shortcut to root package
JoshuaKGoldberg Nov 7, 2021
a025d1e
chore: remove website:build
JoshuaKGoldberg Nov 7, 2021
27b1b30
chore: added build-website to build
JoshuaKGoldberg Nov 7, 2021
0167285
chore: use node 16 for website
JoshuaKGoldberg Nov 7, 2021
2f94c61
chore: merge
JoshuaKGoldberg Nov 8, 2021
198ce68
chore: merge
JoshuaKGoldberg Nov 8, 2021
e99d4dc
chore: exclude website in ci.yml yarn build
JoshuaKGoldberg Nov 8, 2021
a2a48d6
chore: fix lint issues in generate-sponsors
JoshuaKGoldberg Nov 8, 2021
56159e3
chore: fix ci.yml for website:build
JoshuaKGoldberg Nov 8, 2021
0f325fc
chore: actually fix lint, and also .eslintignore
JoshuaKGoldberg Nov 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
"version": "0.1",
"language": "en",
"ignorePaths": [
"**/coverage/**",
"**/node_modules/**",
"**/dist/**",
"**/fixtures/**",
".cspell.json",
".github/workflows/**",
".vscode/*.json",
"**/*.{json,snap}",
"**/**/CHANGELOG.md",
"**/**/CONTRIBUTORS.md",
"**/**/ROADMAP.md",
"**/*.{json,snap}",
".cspell.json",
"yarn.lock",
".github/workflows/**",
".vscode/*.json"
"**/coverage/**",
"**/dist/**",
"**/fixtures/**",
"**/node_modules/**",
"packages/website/.docusaurus/**",
"packages/website/build/**",
"yarn.lock"
],
"dictionaries": [
"typescript",
Expand Down Expand Up @@ -104,7 +106,7 @@
],
"overrides": [
{
"filename": "**/*.{ts,js}",
"filename": "**/*.{ts,js,tsx,jsx}",
"ignoreRegExpList": ["/@[a-z]+/", "/#(end)?region/"],
"includeRegExpList": [
"/\\/\\*[\\s\\S]*?\\*\\/|([^\\\\:]|^)\\/\\/.*$/",
Expand Down
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ __snapshots__

packages/eslint-plugin-tslint/tests

packages/website/**/*.js
packages/website/**/*.d.ts

# Files copied as part of the build
packages/types/src/ast-spec.ts
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,5 +304,12 @@ module.exports = {
'import/no-default-export': 'off',
},
},
{
files: ['packages/website/src/**/*.{ts,tsx}'],
rules: {
'import/no-default-export': 'off',
'no-console': 'off',
},
},
],
};
43 changes: 37 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

- name: Build
run: |
yarn build
yarn build --exclude website

# Note that this command *also* type checks tests/tools,
# whereas the build only checks src files
Expand Down Expand Up @@ -92,7 +92,7 @@ jobs:

- name: Build
run: |
yarn build
yarn build --exclude website

- name: Run unit tests for typescript-estree
run: npx nx test @typescript-eslint/typescript-estree
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:

- name: Build
run: |
yarn build
yarn build --exclude website

- name: Check code formatting
run: yarn check-format
Expand Down Expand Up @@ -213,7 +213,7 @@ jobs:

- name: Build
run: |
yarn build
yarn build --exclude website

- name: Run integrations tests
run: yarn test-integration
Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:

- name: Build
run: |
yarn build
yarn build --exclude website

- name: Run unit tests for typescript-estree
run: npx nx test @typescript-eslint/typescript-estree
Expand Down Expand Up @@ -337,9 +337,40 @@ jobs:

- name: Build
run: |
yarn build
yarn build --exclude website

- name: Publish all packages to npm
run: npx lerna publish --loglevel=verbose --canary --exact --force-publish --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

website:
name: Build the documentation website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: 16

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install dependencies
run: |
yarn --ignore-engines --frozen-lockfile --ignore-scripts
yarn check-clean-workspace-after-install

- name: Build Website
run: |
yarn nx run website:build
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Website
packages/website/.docusaurus
packages/website/.cache-loader
packages/website/build

# Runtime data
pids
*.pid
Expand Down Expand Up @@ -57,7 +62,6 @@ jspm_packages/
# next.js build output
.next


# Editor-specific metadata folders
.vs

Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ CONTRIBUTORS.md
# Ignore CHANGELOG.md files to avoid issues with automated release job
CHANGELOG.md

packages/website/.docusaurus
packages/website/build

# TODO - remove this once prettier supports TS4.1
packages/scope-manager/tests/fixtures/type-declaration/literal-type1.ts
packages/scope-manager/tests/fixtures/type-declaration/literal-type2.ts
Expand Down
10 changes: 7 additions & 3 deletions docs/getting-started/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Getting Started
---
title: Getting Started
sidebar_label: Getting Started
slug: /
---

Approaching a monorepo project like this can be pretty daunting and hard to navigate for a new user.

The goal of these docs are to give you a quick overview of the project and all of its the pieces, as well as provide guides to help you get setup.

The docs are broken down into the following categories:

## [I want to lint my TypeScript codebase.](./linting/README.md)
- [I want to lint my TypeScript codebase.](./linting/README.md)

## [(TODO) I want to write an ESLint plugin in TypeScript.](./plugin-development/README.md)
- [(TODO) I want to write an ESLint plugin in TypeScript.](./plugin-development/README.md)
Loading