diff --git a/package.json b/package.json index 87c4cf3..c7c98f3 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,14 @@ "description": "rehype plugin to add `id` attributes to headings", "license": "MIT", "keywords": [ - "unified", + "heading", + "html", + "id", + "plugin", "rehype", "rehype-plugin", - "plugin", - "html", - "heading", "slug", - "id" + "unified" ], "repository": "rehypejs/rehype-slug", "bugs": "https://github.com/rehypejs/rehype-slug/issues", @@ -54,31 +54,32 @@ }, "scripts": { "build": "tsc --build --clean && tsc --build && type-coverage", - "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix", + "format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix", + "prepack": "npm run build && npm run format", + "test": "npm run build && npm run format && npm run test-coverage", "test-api": "node --conditions development test.js", - "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api", - "test": "npm run build && npm run format && npm run test-coverage" + "test-coverage": "c8 --100 --check-coverage --reporter lcov npm run test-api" }, "prettier": { - "tabWidth": 2, - "useTabs": false, - "singleQuote": true, "bracketSpacing": false, + "singleQuote": true, "semi": false, - "trailingComma": "none" - }, - "xo": { - "prettier": true + "tabWidth": 2, + "trailingComma": "none", + "useTabs": false }, "remarkConfig": { "plugins": [ - "preset-wooorm" + "remark-preset-wooorm" ] }, "typeCoverage": { "atLeast": 100, "detail": true, - "strict": true, - "ignoreCatch": true + "ignoreCatch": true, + "strict": true + }, + "xo": { + "prettier": true } }