File tree 4 files changed +24
-23
lines changed
4 files changed +24
-23
lines changed Original file line number Diff line number Diff line change 1
1
import type { Literal } from 'mdast'
2
2
3
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
4
+ export interface Math extends Literal {
5
+ type : 'math'
6
+ meta ?: string | null
7
+ }
8
+
9
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
10
+ export interface InlineMath extends Literal {
11
+ type : 'inlineMath'
12
+ }
3
13
declare module 'mdast-util-from-markdown' {
4
14
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
5
15
interface CompileData {
@@ -41,17 +51,6 @@ declare module 'mdast-util-to-markdown' {
41
51
}
42
52
}
43
53
44
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
45
- export interface Math extends Literal {
46
- type : 'math'
47
- meta ?: string | null
48
- }
49
-
50
- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
51
- export interface InlineMath extends Literal {
52
- type : 'inlineMath'
53
- }
54
-
55
54
declare module 'mdast' {
56
55
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
57
56
interface StaticPhrasingContentMap {
Original file line number Diff line number Diff line change 4
4
* @typedef {import('mdast-util-from-markdown').Handle } FromMarkdownHandle
5
5
* @typedef {import('mdast-util-to-markdown').Options } ToMarkdownExtension
6
6
* @typedef {import('mdast-util-to-markdown').Handle } ToMarkdownHandle
7
- * @typedef {import('./complex-types').Math } Math
8
- * @typedef {import('./complex-types').InlineMath } InlineMath
7
+ * @typedef {import('./complex-types.js ').Math } Math
8
+ * @typedef {import('./complex-types.js ').InlineMath } InlineMath
9
9
*
10
10
* @typedef ToOptions
11
11
* @property {boolean } [singleDollarTextMath=true]
Original file line number Diff line number Diff line change 55
55
"xo" : " ^0.53.0"
56
56
},
57
57
"scripts" : {
58
- "build" : " rimraf \" {index,test}.d.ts\" && tsc && type-coverage" ,
58
+ "prepack" : " npm run build && npm run format" ,
59
+ "build" : " tsc --build --clean && tsc --build && type-coverage" ,
59
60
"format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
60
61
"test-api" : " node --conditions development test.js" ,
61
- "test-coverage" : " c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 -- reporter lcov node --conditions development test.js " ,
62
+ "test-coverage" : " c8 --check-coverage --100 --reporter lcov npm run test-api " ,
62
63
"test" : " npm run build && npm run format && npm run test-coverage"
63
64
},
64
65
"prettier" : {
Original file line number Diff line number Diff line change 1
1
{
2
- "include" : [" *.js" ],
2
+ "include" : [" **/*.js" , " complex-types.d.ts" ],
3
+ "exclude" : [" coverage/" , " node_modules/" ],
3
4
"compilerOptions" : {
4
- "target" : " ES2020" ,
5
- "lib" : [" ES2020" ],
6
- "module" : " ES2020" ,
7
- "moduleResolution" : " node" ,
8
- "allowJs" : true ,
9
5
"checkJs" : true ,
10
6
"declaration" : true ,
11
7
"emitDeclarationOnly" : true ,
12
- "allowSyntheticDefaultImports" : true ,
8
+ "exactOptionalPropertyTypes" : true ,
9
+ "forceConsistentCasingInFileNames" : true ,
10
+ "lib" : [" es2020" ],
11
+ "module" : " node16" ,
12
+ "newLine" : " lf" ,
13
13
"skipLibCheck" : true ,
14
- "strict" : true
14
+ "strict" : true ,
15
+ "target" : " es2020"
15
16
}
16
17
}
You can’t perform that action at this time.
0 commit comments