Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
CI: true
- name: Lint
run: npm run lint
- name: Lint Files, Dependencies, & Exports
run: npm run lint:unused

format:
name: File Format
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Publish to JSR
run: |
npm run build --if-present
npx jsr publish
npx -y jsr publish
if: ${{ steps.release.outputs.release_created }}

# Generates the social media post
Expand Down
12 changes: 12 additions & 0 deletions knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"workspaces": {
".": {
"entry": ["tests/**/*.test.js", "tests/fixtures/*.js"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"entry": ["tests/**/*.test.js", "tests/fixtures/*.js"],
"entry": ["tests/**/*.test.{js,ts}", "tests/fixtures/*.js"],

I have a question. In https://github.com/eslint/rewrite/pull/241/files the ts test files are included — should we include ts here as well? There's a types.test.ts in the tests directory.

https://github.com/eslint/markdown/blob/main/tests/types/types.test.ts

"project": ["src/**/*.js", "src/**/*.ts"]
},
"examples/*": {
"entry": ["**/*.*s"]
}
}
}
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"scripts": {
"lint": "eslint . && eslint -c eslint.config-content.js .",
"lint:fix": "eslint --fix . && eslint --fix -c eslint.config-content.js .",
"lint:unused": "knip",
"fmt": "prettier --write .",
"fmt:check": "prettier --check .",
"build:rules": "node tools/build-rules.js",
Expand All @@ -74,16 +75,20 @@
},
"devDependencies": {
"@eslint/js": "^9.4.0",
"@types/mdast": "^4.0.4",
"@types/unist": "^3.0.3",
"c8": "^10.1.2",
"dedent": "^1.5.3",
"eslint": "^9.28.0",
"eslint-config-eslint": "^11.0.0",
"eslint-plugin-eslint-plugin": "^6.3.2",
"globals": "^15.1.0",
"got": "^14.4.2",
"knip": "^5.61.3",
"lint-staged": "^15.2.9",
"mocha": "^11.6.0",
"prettier": "^3.3.3",
"semver": "^7.7.2",
"typescript": "^5.8.3",
"yorkie": "^2.0.0"
},
Expand Down
Loading