Skip to content

Commit b563caf

Browse files
committed
Refactor package.json
1 parent 47fd7cc commit b563caf

File tree

3 files changed

+25
-26
lines changed

3 files changed

+25
-26
lines changed

.remarkignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test/

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function remarkGfm(options = {}) {
2828
// Other extensions
2929
/* c8 ignore next 2 */
3030
// @ts-expect-error: to do: remove when remark is released.
31-
data[field] ? data[field] : (data[field] = [])
31+
data[field] || (data[field] = [])
3232
)
3333

3434
list.push(value)

package.json

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
"description": "remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)",
55
"license": "MIT",
66
"keywords": [
7-
"unified",
7+
"autolink",
8+
"footnote",
9+
"gfm",
10+
"github",
11+
"markdown",
12+
"mdast",
13+
"plugin",
814
"remark",
915
"remark-plugin",
10-
"plugin",
11-
"mdast",
12-
"markdown",
13-
"table",
1416
"strikethrough",
17+
"table",
1518
"tasklist",
16-
"autolink",
17-
"footnote",
18-
"github",
19-
"gfm"
19+
"unified"
2020
],
2121
"repository": "remarkjs/remark-gfm",
2222
"bugs": "https://github.com/remarkjs/remark-gfm/issues",
@@ -59,34 +59,32 @@
5959
},
6060
"scripts": {
6161
"build": "tsc --build --clean && tsc --build && type-coverage",
62-
"format": "remark . -qfo --ignore-pattern test/ && prettier . -w --log-level warn && xo --fix",
62+
"format": "remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix",
63+
"prepack": "npm run build && npm run format",
64+
"test": "npm run build && npm run format && npm run test-coverage",
6365
"test-api": "node --conditions development test/index.js",
64-
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
65-
"test": "npm run build && npm run format && npm run test-coverage"
66+
"test-coverage": "c8 --100 --reporter lcov npm run test-api"
6667
},
6768
"prettier": {
68-
"tabWidth": 2,
69-
"useTabs": false,
70-
"singleQuote": true,
7169
"bracketSpacing": false,
70+
"singleQuote": true,
7271
"semi": false,
73-
"trailingComma": "none"
74-
},
75-
"xo": {
76-
"prettier": true,
77-
"rules": {
78-
"unicorn/prefer-logical-operator-over-ternary": "off"
79-
}
72+
"tabWidth": 2,
73+
"trailingComma": "none",
74+
"useTabs": false
8075
},
8176
"remarkConfig": {
8277
"plugins": [
83-
"preset-wooorm"
78+
"remark-preset-wooorm"
8479
]
8580
},
8681
"typeCoverage": {
8782
"atLeast": 100,
8883
"detail": true,
89-
"strict": true,
90-
"ignoreCatch": true
84+
"ignoreCatch": true,
85+
"strict": true
86+
},
87+
"xo": {
88+
"prettier": true
9189
}
9290
}

0 commit comments

Comments
 (0)