Skip to content

Commit

Permalink
Refactor package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 26, 2023
1 parent 23b717e commit 4f33a01
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"description": "rehype plugin to sanitize HTML",
"license": "MIT",
"keywords": [
"unified",
"clean",
"html",
"plugin",
"rehype",
"rehype-plugin",
"plugin",
"xss",
"sanitize",
"clean",
"html"
"unified",
"xss"
],
"repository": "rehypejs/rehype-sanitize",
"bugs": "https://github.com/rehypejs/rehype-sanitize/issues",
Expand Down Expand Up @@ -51,34 +51,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 node --conditions development test.js",
"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,
"ignores": [
"types/"
]
"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
}
}

0 comments on commit 4f33a01

Please sign in to comment.