Skip to content

Commit c2e7737

Browse files
feat: eslint 9 migration
BREAKING CHANGE: eslint 9 is now require BREAKING CHANGE: typescript >= v4.7 is now required (when using typescript)
1 parent b83aa68 commit c2e7737

File tree

83 files changed

+7611
-6559
lines changed

Some content is hidden

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

83 files changed

+7611
-6559
lines changed

.eslintrc.json

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

.github/renovate.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@
5858
{
5959
"allowedVersions": "<5",
6060
"matchPackageNames": ["chalk"]
61-
},
62-
{
63-
"allowedVersions": "<9",
64-
"matchPackageNames": ["eslint"]
6561
}
6662
],
6763
"postUpdateOptions": ["pnpmDedupe"]

.github/workflows/lint-prettier.yml

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

.github/workflows/release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ 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:
@@ -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/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' }}

.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

.markdownlintignore

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

.prettierrc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
plugins:
44
- prettier-plugin-packagejson
5-
- prettier-plugin-multiline-arrays
65

76
trailingComma: "all"
87

0 commit comments

Comments
 (0)