Skip to content

Commit

Permalink
ci: add more linting checks (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli authored Mar 10, 2024
1 parent a76a7cc commit 6a7a3f3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
- name: 📥 Install dependencies
run: npm install

- name: ▶️ Run format:check script
run: npm run format:check

- name: ▶️ Run lint script
run: npm run lint

Expand Down
4 changes: 4 additions & 0 deletions .knip.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"ignore": ["./docs/.vitepress/**/*"]
}
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
"format": "npm run -s format:prettier -- --write",
"format:prettier": "prettier .",
"format:check": "npm run -s format:prettier -- --check",
"lint": "eslint .",
"lint:eslint": "eslint .",
"lint:format": "npm run -s format:check",
"lint:installed-check": "installed-check -v -i installed-check -i npm-run-all2 -i knip",
"lint:knip": "knip",
"lint": "run-p lint:*",
"test": "c8 mocha --reporter dot \"test/*.mjs\"",
"preversion": "npm test && npm run -s build",
"postversion": "git push && git push --tags",
Expand All @@ -53,8 +57,10 @@
"c8": "^8.0.1",
"dot-prop": "^7.2.0",
"eslint": "^8.50.0",
"installed-check": "^8.0.1",
"knip": "^5.0.3",
"mocha": "^9.2.2",
"npm-run-all": "^4.1.5",
"npm-run-all2": "^6.1.2",
"opener": "^1.5.2",
"prettier": "2.8.8",
"rimraf": "^3.0.2",
Expand Down

0 comments on commit 6a7a3f3

Please sign in to comment.