Skip to content

Commit c6eb13b

Browse files
build: remove redundant linting tasks
1 parent fbddef9 commit c6eb13b

File tree

5 files changed

+19
-30
lines changed

5 files changed

+19
-30
lines changed

.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

.lintstagedrc.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
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

55
"*.ts":
6-
- prettier --ignore-unknown --write
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
11+
- eslint --fix
1312
- markdownlint --config=.markdownlint.json --ignore-path=.markdownlintignore
1413
- cspell lint --no-progress --show-suggestions --show-context --no-must-find-files --dot
1514

.vscode/settings.json

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.fixAll": "explicit",
4-
"source.fixAll.eslint": "explicit",
5-
"source.formatDocument": "explicit",
6-
"source.organizeImports": "explicit",
7-
"source.sortImports": "explicit"
3+
"source.fixAll.eslint": "explicit"
84
},
95
"editor.defaultFormatter": "esbenp.prettier-vscode",
106
"editor.formatOnSave": true,
117
"editor.formatOnSaveMode": "file",
128
"editor.rulers": [80],
9+
"eslint.probe": [
10+
"html",
11+
"javascript",
12+
"javascriptreact",
13+
"json",
14+
"jsonc",
15+
"markdown",
16+
"toml",
17+
"typescript",
18+
"typescriptreact",
19+
"vue",
20+
"yaml"
21+
],
1322
"files.associations": {
1423
".markdownlint.json": "jsonc",
1524
".markdownlintignore": "ignore"
@@ -29,6 +38,6 @@
2938
},
3039
"typescript.tsdk": "./node_modules/typescript/lib",
3140
"[markdown]": {
32-
"editor.rulers": [160]
41+
"editor.rulers": [120]
3342
}
3443
}

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"build:docs": "eslint-doc-generator",
5555
"build:node": "rimraf lib && rollup -c rollup.config.ts --configPlugin rollup-plugin-ts",
5656
"cz": "git-cz",
57-
"lint": "pnpm run build:node && pnpm run lint:js && pnpm run lint:md && pnpm lint:eslint-docs && pnpm run lint:prettier && pnpm run lint:knip && pnpm run lint:spelling && pnpm run lint:packages",
58-
"lint-fix": "pnpm run build:node && pnpm run lint:js-fix && pnpm lint:eslint-docs-fix && pnpm run lint:prettier-fix && pnpm run lint:packages-fix",
57+
"lint": "pnpm run build:node && pnpm run lint:js && pnpm run lint:md && pnpm lint:eslint-docs && pnpm run lint:knip && pnpm run lint:spelling && pnpm run lint:packages",
58+
"lint-fix": "pnpm run build:node && pnpm run lint:js-fix && pnpm lint:eslint-docs-fix && pnpm run lint:packages-fix",
5959
"lint:eslint-docs": "eslint-doc-generator --check",
6060
"lint:eslint-docs-fix": "pnpm build:docs",
6161
"lint:js": "eslint .",
@@ -66,8 +66,6 @@
6666
"lint:md": "markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore",
6767
"lint:packages": "pnpm dedupe --check",
6868
"lint:packages-fix": "pnpm dedupe",
69-
"lint:prettier": "prettier \"**/*\" --ignore-unknown --list-different",
70-
"lint:prettier-fix": "prettier \"**/*\" --ignore-unknown --write",
7169
"lint:spelling": "cspell \"**\" \".github/**/*\"",
7270
"prepare": "husky",
7371
"release": "semantic-release",

0 commit comments

Comments
 (0)