Skip to content

Commit

Permalink
Refactor package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 15, 2023
1 parent 47fd7cc commit b563caf
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 26 deletions.
1 change: 1 addition & 0 deletions .remarkignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function remarkGfm(options = {}) {
// Other extensions
/* c8 ignore next 2 */
// @ts-expect-error: to do: remove when remark is released.
data[field] ? data[field] : (data[field] = [])
data[field] || (data[field] = [])
)

list.push(value)
Expand Down
48 changes: 23 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
"description": "remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)",
"license": "MIT",
"keywords": [
"unified",
"autolink",
"footnote",
"gfm",
"github",
"markdown",
"mdast",
"plugin",
"remark",
"remark-plugin",
"plugin",
"mdast",
"markdown",
"table",
"strikethrough",
"table",
"tasklist",
"autolink",
"footnote",
"github",
"gfm"
"unified"
],
"repository": "remarkjs/remark-gfm",
"bugs": "https://github.com/remarkjs/remark-gfm/issues",
Expand Down Expand Up @@ -59,34 +59,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 --reporter lcov npm run test-api"
},
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"singleQuote": true,
"semi": false,
"trailingComma": "none"
},
"xo": {
"prettier": true,
"rules": {
"unicorn/prefer-logical-operator-over-ternary": "off"
}
"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 b563caf

Please sign in to comment.