diff --git a/.remarkignore b/.remarkignore new file mode 100644 index 0000000..8be5c35 --- /dev/null +++ b/.remarkignore @@ -0,0 +1 @@ +test/fixtures/ diff --git a/package.json b/package.json index 63ab369..04c5ae6 100644 --- a/package.json +++ b/package.json @@ -4,15 +4,15 @@ "description": "remark plugin to support directives", "license": "MIT", "keywords": [ - "unified", + "container", + "directive", + "generic", + "markdown", + "mdast", + "plugin", "remark", "remark-plugin", - "plugin", - "mdast", - "markdown", - "generic", - "directive", - "container" + "unified" ], "repository": "remarkjs/remark-directive", "bugs": "https://github.com/remarkjs/remark-directive/issues", @@ -54,31 +54,32 @@ }, "scripts": { "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-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 } }