Refactor package.json

This commit is contained in:
Titus Wormer 2023-09-15 19:23:53 +02:00
parent bd953c935e
commit f525f4c172
No known key found for this signature in database
GPG key ID: E6E581152ED04E2E
2 changed files with 22 additions and 20 deletions

1
.remarkignore Normal file
View file

@ -0,0 +1 @@
test/fixtures/

View file

@ -4,15 +4,15 @@
"description": "remark plugin to support directives", "description": "remark plugin to support directives",
"license": "MIT", "license": "MIT",
"keywords": [ "keywords": [
"unified", "container",
"directive",
"generic",
"markdown",
"mdast",
"plugin",
"remark", "remark",
"remark-plugin", "remark-plugin",
"plugin", "unified"
"mdast",
"markdown",
"generic",
"directive",
"container"
], ],
"repository": "remarkjs/remark-directive", "repository": "remarkjs/remark-directive",
"bugs": "https://github.com/remarkjs/remark-directive/issues", "bugs": "https://github.com/remarkjs/remark-directive/issues",
@ -54,31 +54,32 @@
}, },
"scripts": { "scripts": {
"build": "tsc --build --clean && tsc --build && type-coverage", "build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo --ignore-pattern test/ && 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/index.js", "test-api": "node --conditions development test/index.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api", "test-coverage": "c8 --100 --check-coverage --reporter lcov npm run test-api"
"test": "npm run build && npm run format && npm run test-coverage"
}, },
"prettier": { "prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false, "bracketSpacing": false,
"singleQuote": true,
"semi": false, "semi": false,
"trailingComma": "none" "tabWidth": 2,
}, "trailingComma": "none",
"xo": { "useTabs": false
"prettier": true
}, },
"remarkConfig": { "remarkConfig": {
"plugins": [ "plugins": [
"preset-wooorm" "remark-preset-wooorm"
] ]
}, },
"typeCoverage": { "typeCoverage": {
"atLeast": 100, "atLeast": 100,
"detail": true, "detail": true,
"strict": true, "ignoreCatch": true,
"ignoreCatch": true "strict": true
},
"xo": {
"prettier": true
} }
} }