UNPKG

hast-util-format

Version:
125 lines (124 loc) 3.02 kB
{ "name": "hast-util-format", "version": "1.1.0", "description": "Format whitespace in HTML", "license": "MIT", "keywords": [ "ast", "format", "hast", "html", "pretty", "tree", "whitespace" ], "repository": "syntax-tree/hast-util-format", "bugs": "https://github.com/syntax-tree/hast-util-format/issues", "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" }, "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", "contributors": [ "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" ], "sideEffects": false, "type": "module", "exports": "./index.js", "files": [ "lib/", "index.d.ts", "index.js" ], "dependencies": { "@types/hast": "^3.0.0", "hast-util-embedded": "^3.0.0", "hast-util-minify-whitespace": "^1.0.0", "hast-util-phrasing": "^3.0.0", "hast-util-whitespace": "^3.0.0", "html-whitespace-sensitive-tag-names": "^3.0.0", "unist-util-visit-parents": "^6.0.0" }, "devDependencies": { "@types/node": "^22.0.0", "c8": "^10.0.0", "hast-util-from-html": "^2.0.0", "hast-util-to-html": "^9.0.0", "prettier": "^3.0.0", "remark-api": "^1.0.0", "remark-cli": "^12.0.0", "remark-preset-wooorm": "^10.0.0", "type-coverage": "^2.0.0", "typescript": "^5.0.0", "xo": "^0.59.0" }, "scripts": { "prepack": "npm run build && npm run format", "build": "tsc --build --clean && tsc --build && type-coverage", "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix", "test-api": "node --conditions development test/index.js", "test-coverage": "c8 --100 --reporter lcov npm run test-api", "test": "npm run build && npm run format && npm run test-coverage" }, "prettier": { "bracketSpacing": false, "semi": false, "singleQuote": true, "tabWidth": 2, "trailingComma": "none", "useTabs": false }, "remarkConfig": { "plugins": [ "remark-api", "remark-preset-wooorm" ] }, "typeCoverage": { "atLeast": 100, "detail": true, "ignoreCatch": true, "strict": true }, "xo": { "overrides": [ { "files": [ "**/*.d.ts" ], "rules": { "@typescript-eslint/array-type": [ "error", { "default": "generic" } ], "@typescript-eslint/ban-types": [ "error", { "extendDefaults": true } ], "@typescript-eslint/consistent-type-definitions": [ "error", "interface" ] } }, { "files": [ "test/**/*.js" ], "rules": { "no-await-in-loop": "off" } } ], "prettier": true, "rules": { "complexity": "off", "unicorn/prefer-at": "off", "unicorn/prefer-string-replace-all": "off" } } }