Skip to content

Commit 3b64a17

Browse files
feat: eslint 9 migration
BREAKING CHANGE: eslint 9 is now require BREAKING CHANGE: typescript >= v4.7 is now required (when using typescript) BREAKING CHANGE: node >= 18.18 is now required
1 parent 679d1c5 commit 3b64a17

File tree

161 files changed

+7750
-7497
lines changed

Some content is hidden

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

161 files changed

+7750
-7497
lines changed

.eslintrc.json

Lines changed: 0 additions & 124 deletions
This file was deleted.

.github/renovate.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,6 @@
5050
"rangeStrategy": "replace",
5151
"semanticCommitScope": "dev-deps",
5252
"semanticCommitType": "ci"
53-
},
54-
{
55-
"allowedVersions": "<5",
56-
"matchPackageNames": ["escape-string-regexp"]
57-
},
58-
{
59-
"allowedVersions": "<9",
60-
"matchPackageNames": ["eslint"]
6153
}
6254
],
6355
"postUpdateOptions": ["pnpmDedupe"]

.github/workflows/lint-prettier.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ jobs:
2828
uses: ./.github/workflows/lint-markdown.yml
2929
lint_packages:
3030
uses: ./.github/workflows/lint-packages.yml
31-
lint_prettier:
32-
uses: ./.github/workflows/lint-prettier.yml
3331
lint_spelling:
3432
uses: ./.github/workflows/lint-spelling.yml
3533
test:
3634
uses: ./.github/workflows/test-js.yml
3735
type_check:
38-
uses: ./.github/workflows/type-check.yml
36+
uses: ./.github/workflows/typecheck.yml
3937

4038
release:
4139
needs:
@@ -46,7 +44,6 @@ jobs:
4644
- lint_markdown
4745
- lint_spelling
4846
- lint_packages
49-
- lint_prettier
5047
- test
5148
- type_check
5249
runs-on: ubuntu-latest

.github/workflows/semantic-pr.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,5 @@ jobs:
5252
subjectPattern: ^(?![A-Z]).+$ # Don't start with an uppercase character.
5353
subjectPatternError: |
5454
The subject "{subject}" should not start with an uppercase character.
55-
ignoreLabels: |
56-
bot
57-
ignore-semantic-pull-request
5855
headerPattern: '^(\w*)(?:\(([\w$.\-*/ ]*)\))?!?: (.*)$'
5956
headerPatternCorrespondence: type, scope, subject

.github/workflows/test-js.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ jobs:
1414
os:
1515
- "ubuntu-latest"
1616
node_version:
17-
- "16"
18-
- "18"
17+
- "18.18"
1918
- "20"
2019
- "latest"
2120
ts_version:
2221
- "next"
2322
- "latest"
24-
- "4.3.5"
23+
- "4.7.4"
2524
# - "JS"
2625
runs-on: ${{ matrix.os }}
2726
continue-on-error: ${{ matrix.ts_version == 'next' }}

.github/workflows/type-check.yml renamed to .github/workflows/typecheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
workflow_call:
77

88
jobs:
9-
type-check:
9+
typecheck:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: ./.github/actions/prepare
14-
- run: pnpm run type-check
14+
- run: pnpm run typecheck

.lintstagedrc.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
"*.{json,yml}":
2-
- prettier --ignore-unknown --write
2+
- eslint --fix
33
- cspell lint --no-progress --show-suggestions --show-context --no-must-find-files --dot
44

5-
"*.ts":
6-
- prettier --ignore-unknown --write
5+
"*.?([cm])[jt]s?(x)":
76
- eslint --fix
87
- cspell lint --no-progress --show-suggestions --show-context --no-must-find-files --dot
98
- tsc-files -p tsconfig.build.json --noEmit
109

1110
"*.md":
12-
- prettier --ignore-unknown --write
13-
- markdownlint --config=.markdownlint.json --ignore-path=.markdownlintignore
11+
- markdownlint-cli2 --fix
12+
- eslint --fix
1413
- cspell lint --no-progress --show-suggestions --show-context --no-must-find-files --dot
1514

16-
"pnpm-lock.yaml":
15+
pnpm-lock.yaml:
1716
- "pnpm dedupe && :"

.markdownlint-cli2.jsonc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "node_modules/markdownlint-cli2/schema/markdownlint-cli2-config-schema.json",
3+
"gitignore": true,
4+
"globs": ["**/*.md"],
5+
"ignores": ["node_modules", "coverage", "lib", "CHANGELOG.md"],
6+
}

.markdownlint.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"$schema": "node_modules/markdownlint-cli2/schema/markdownlint-config-schema.json",
3+
24
"default": false,
35
"extends": "markdownlint/style/prettier",
46

@@ -62,9 +64,9 @@
6264
// MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.33.0/doc/md013.md
6365
"MD013": {
6466
// Number of characters
65-
"line_length": 160,
67+
"line_length": 120,
6668
// Number of characters for headings
67-
"heading_line_length": 160,
69+
"heading_line_length": 120,
6870
// Number of characters for code blocks
6971
"code_block_line_length": 120,
7072
// Include code blocks

0 commit comments

Comments
 (0)