Skip to content

Update tsconfig.json #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 29, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
* @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
* @typedef {import('mdast-util-from-markdown').Token} Token
* @typedef {import('mdast-util-to-markdown/lib/types.js').Handle} ToMarkdownHandle
* @typedef {import('mdast-util-to-markdown/lib/types.js').Context} Context
* @typedef {import('mdast-util-to-markdown/index.js').Context} Context
* @typedef {import('mdast-util-to-markdown/lib/types.js').Options} ToMarkdownExtension
* @typedef {import('./complex-types').ContainerDirective} ContainerDirective
* @typedef {import('./complex-types').LeafDirective} LeafDirective
* @typedef {import('./complex-types').TextDirective} TextDirective
* @typedef {import('./complex-types.js').ContainerDirective} ContainerDirective
* @typedef {import('./complex-types.js').LeafDirective} LeafDirective
* @typedef {import('./complex-types.js').TextDirective} TextDirective
* @typedef {ContainerDirective|LeafDirective|TextDirective} Directive
*/

Expand Down Expand Up @@ -398,7 +398,7 @@ function fence(node) {

return ':'.repeat(size)

/** @type {import('unist-util-visit-parents/complex-types').BuildVisitor<Root, Directive>} */
/** @type {import('unist-util-visit-parents/complex-types.js').BuildVisitor<Root, Directive>} */
function onvisit(_, parents) {
let index = parents.length
let nesting = 0
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"dependencies": {
"@types/mdast": "^3.0.0",
"@types/unist": "^2.0.0",
"mdast-util-to-markdown": "^1.3.0",
"mdast-util-to-markdown": "^1.5.0",
"parse-entities": "^4.0.0",
"stringify-entities": "^4.0.0",
"unist-util-visit-parents": "^5.0.0"
"unist-util-visit-parents": "^5.1.3"
},
"devDependencies": {
"@types/tape": "^4.0.0",
Expand All @@ -51,18 +51,17 @@
"prettier": "^2.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"unist-util-remove-position": "^4.0.0",
"xo": "^0.52.0"
},
"scripts": {
"build": "rimraf \"{index,test}.d.ts\" && tsc && type-coverage",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node --conditions development test.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test.js",
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
},
"prettier": {
Expand Down
14 changes: 7 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"include": ["*.js"],
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020"],
"module": "ES2020",
"moduleResolution": "node",
"allowJs": true,
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2020"],
"module": "node16",
"newLine": "lf",
"skipLibCheck": true,
"strict": true
"strict": true,
"target": "es2020"
}
}