Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 1 addition & 4 deletions jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
"exports": "./dist/esm/index.js",
"publish": {
"include": [
"dist/esm/index.js",
"dist/esm/index.d.ts",
"dist/esm/types.ts",
"dist/esm/types.d.ts",
"dist",
"README.md",
"jsr.json",
"LICENSE"
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@
"lint:fix": "eslint --fix . && eslint --fix -c eslint.config-content.js .",
"fmt": "prettier --write .",
"fmt:check": "prettier --check .",
"build:dedupe-types": "node tools/dedupe-types.js dist/esm/index.js",
"build:rules": "node tools/build-rules.js",
"build:update-rules-docs": "node tools/update-rules-docs.js",
"build": "npm run build:rules && rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:update-rules-docs",
"build": "npm run build:rules && tsc && npm run build:update-rules-docs",
"build:readme": "node tools/update-readme.js",
"prepare": "npm run build",
"test": "c8 mocha \"tests/**/*.test.js\" --timeout 30000",
Expand All @@ -85,9 +84,6 @@
"lint-staged": "^15.2.9",
"mocha": "^11.6.0",
"prettier": "^3.3.3",
"rollup": "^4.19.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-delete": "^3.0.1",
"typescript": "^5.8.3",
"yorkie": "^2.0.0"
},
Expand Down
19 changes: 0 additions & 19 deletions rollup.config.js

This file was deleted.

10 changes: 4 additions & 6 deletions tests/types/types.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import markdown, {
MarkdownSourceCode,
MarkdownNode,
MarkdownRuleDefinition,
MarkdownRuleVisitor,
SourceLocation,
SourceRange,
type RuleModule,
} from "@eslint/markdown";
import { Toml, Json } from "@eslint/markdown/types";
import type { SourceLocation, SourceRange } from "@eslint/core";
import type { Toml, Json } from "@eslint/markdown/types";
import { ESLint, Linter } from "eslint";
import type {
// Nodes (abstract)
Expand Down Expand Up @@ -168,8 +166,8 @@ typeof processorPlugins satisfies {};
"json:exit": (...args) => testVisitor<Json>(...args),

// Unknown selectors allowed
"heading[depth=1]"(node: MarkdownNode, parent?: ParentNode) {},
"randomSelector:exit"(node: MarkdownNode, parent?: ParentNode) {},
"heading[depth=1]"(node: Node, parent?: ParentNode) {},
"randomSelector:exit"(node: Node, parent?: ParentNode) {},
};
},
});
Expand Down
48 changes: 0 additions & 48 deletions tools/dedupe-types.js

This file was deleted.

4 changes: 0 additions & 4 deletions tsconfig.esm.json

This file was deleted.

2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"files": ["src/index.js"],
"compilerOptions": {
"declaration": true,
"emitDeclarationOnly": true,
"allowImportingTsExtensions": true,
"allowJs": true,
"checkJs": true,
"outDir": "dist/esm",
Expand Down