Skip to content

Commit 6a7a3f3

Browse files
authored
ci: add more linting checks (#205)
1 parent a76a7cc commit 6a7a3f3

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

Diff for: .editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

Diff for: .github/workflows/ci.yml

-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ jobs:
3333
- name: 📥 Install dependencies
3434
run: npm install
3535

36-
- name: ▶️ Run format:check script
37-
run: npm run format:check
38-
3936
- name: ▶️ Run lint script
4037
run: npm run lint
4138

Diff for: .knip.jsonc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"ignore": ["./docs/.vitepress/**/*"]
4+
}

Diff for: package.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@
3838
"format": "npm run -s format:prettier -- --write",
3939
"format:prettier": "prettier .",
4040
"format:check": "npm run -s format:prettier -- --check",
41-
"lint": "eslint .",
41+
"lint:eslint": "eslint .",
42+
"lint:format": "npm run -s format:check",
43+
"lint:installed-check": "installed-check -v -i installed-check -i npm-run-all2 -i knip",
44+
"lint:knip": "knip",
45+
"lint": "run-p lint:*",
4246
"test": "c8 mocha --reporter dot \"test/*.mjs\"",
4347
"preversion": "npm test && npm run -s build",
4448
"postversion": "git push && git push --tags",
@@ -53,8 +57,10 @@
5357
"c8": "^8.0.1",
5458
"dot-prop": "^7.2.0",
5559
"eslint": "^8.50.0",
60+
"installed-check": "^8.0.1",
61+
"knip": "^5.0.3",
5662
"mocha": "^9.2.2",
57-
"npm-run-all": "^4.1.5",
63+
"npm-run-all2": "^6.1.2",
5864
"opener": "^1.5.2",
5965
"prettier": "2.8.8",
6066
"rimraf": "^3.0.2",

0 commit comments

Comments
 (0)