Skip to content

Commit 0f6e839

Browse files
committed
Refactor package.json
1 parent dfb14bc commit 0f6e839

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

package.json

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
"description": "unified plugin to ignore unrelated messages",
55
"license": "MIT",
66
"keywords": [
7-
"unified",
8-
"unified-plugin",
7+
"diff",
8+
"difference",
9+
"plugin",
10+
"pr",
11+
"rehype",
912
"remark",
1013
"retext",
11-
"rehype",
12-
"plugin",
1314
"travis",
14-
"difference",
15-
"diff",
16-
"pr"
15+
"unified",
16+
"unified-plugin"
1717
],
1818
"repository": "unifiedjs/unified-diff",
1919
"bugs": "https://github.com/unifiedjs/unified-diff/issues",
@@ -56,31 +56,32 @@
5656
},
5757
"scripts": {
5858
"build": "tsc --build --clean && tsc --build && type-coverage",
59-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
59+
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
60+
"prepack": "npm run build && npm run format",
61+
"test": "npm run build && npm run format && npm run test-coverage",
6062
"test-api": "node --conditions development test/index.js",
61-
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js",
62-
"test": "npm run build && npm run format && npm run test-coverage"
63+
"test-coverage": "c8 --100 --check-coverage --reporter lcov npm run test-api"
6364
},
6465
"prettier": {
65-
"tabWidth": 2,
66-
"useTabs": false,
67-
"singleQuote": true,
6866
"bracketSpacing": false,
67+
"singleQuote": true,
6968
"semi": false,
70-
"trailingComma": "none"
71-
},
72-
"xo": {
73-
"prettier": true
69+
"tabWidth": 2,
70+
"trailingComma": "none",
71+
"useTabs": false
7472
},
7573
"remarkConfig": {
7674
"plugins": [
77-
"preset-wooorm"
75+
"remark-preset-wooorm"
7876
]
7977
},
8078
"typeCoverage": {
8179
"atLeast": 100,
8280
"detail": true,
83-
"strict": true,
84-
"ignoreCatch": true
81+
"ignoreCatch": true,
82+
"strict": true
83+
},
84+
"xo": {
85+
"prettier": true
8586
}
8687
}

0 commit comments

Comments
 (0)