UNPKG

remark-directive-sugar

Version:

Remark plugin built on remark-directive, providing predefined directives for image captions, video embedding, styled GitHub links, badges, and more.

140 lines (139 loc) 3.75 kB
{ "name": "remark-directive-sugar", "version": "2.0.0", "description": "Remark plugin built on remark-directive, providing predefined directives for image captions, video embedding, styled GitHub links, badges, and more.", "author": "Stephanie Lin <norwaywoods047@gmail.com>", "license": "MIT", "keywords": [ "remark-plugin", "remark-directive", "directive", "remark", "mast" ], "repository": "github:lin-stephanie/remark-directive-sugar", "homepage": "https://github.com/lin-stephanie/remark-directive-sugar#readme", "bugs": "https://github.com/lin-stephanie/remark-directive-sugar/issues", "type": "module", "files": [ "dist" ], "main": "dist/index.js", "module": "dist/index.js", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "default": "./dist/index.js" } }, "types": "./dist/index.d.ts", "scripts": { "test": "vitest && vitest run --coverage", "build": "rimraf dist && tsc", "typecheck": "tsc --noEmit", "typecheck:coverage": "type-coverage --strict --detail --min=100", "lint": "xo", "lint:fix": "xo --fix", "prepare": "simple-git-hooks", "release": "npx bumpp --tag %s --commit 'chore: release %s' --all" }, "peerDependencies": { "remark-directive": "^4.0.0" }, "dependencies": { "@types/hast": "^3.0.4", "@types/mdast": "^4.0.4", "hastscript": "^9.0.1", "mdast-util-directive": "^3.1.0", "mdast-util-to-hast": "^13.2.0", "unist-util-visit": "^5.0.0" }, "devDependencies": { "@vitest/coverage-v8": "^4.0.7", "lint-staged": "^16.2.6", "prettier": "^3.6.2", "rehype-minify-whitespace": "^6.0.0", "rehype-parse": "^9.0.1", "rehype-stringify": "^10.0.0", "remark-directive": "^4.0.0", "remark-imgattr": "^1.0.5", "remark-parse": "^11.0.0", "remark-rehype": "^11.1.2", "rimraf": "^6.1.0", "simple-git-hooks": "^2.13.1", "to-vfile": "^8.0.0", "type-coverage": "^2.29.7", "typescript": "^5.9.3", "unified": "^11.0.5", "vitest": "^4.0.7", "xo": "^1.2.3" }, "xo": { "prettier": true, "space": true, "semicolon": false, "rules": { "complexity": "off", "no-multi-assign": "off", "capitalized-comments": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/no-unsafe-return": "off", "@typescript-eslint/no-restricted-types": "off", "@typescript-eslint/triple-slash-reference": "off", "@typescript-eslint/prefer-nullish-coalescing": "off", "@typescript-eslint/consistent-type-definitions": [ "error", "interface" ], "import-x/order": [ "warn", { "groups": [ "builtin", "external", [ "internal", "parent", "sibling" ], "index", "type", "object", "unknown" ], "pathGroups": [ { "pattern": "{.,..}/types.js", "group": "type", "position": "after" } ], "distinctGroup": false, "newlines-between": "always", "alphabetize": { "order": "asc" } } ] } }, "simple-git-hooks": { "pre-commit": "npx lint-staged" }, "lint-staged": { "*": "xo" }, "pnpm": { "onlyBuiltDependencies": [ "esbuild", "simple-git-hooks", "unrs-resolver" ] }, "engines": { "node": "^18.0.0 || ^20.0.0 || >=22.0.0" } }