File tree 6 files changed +40
-13
lines changed
6 files changed +40
-13
lines changed Original file line number Diff line number Diff line change 6
6
coverage /
7
7
node_modules /
8
8
yarn.lock
9
+ ! /index.d.ts
Original file line number Diff line number Diff line change
1
+ import type { Options as MicromarkOptions } from 'micromark-extension-gfm'
2
+ import type { Options as MdastOptions } from 'mdast-util-gfm'
3
+
4
+ export { default } from './lib/index.js'
5
+
6
+ /**
7
+ * Configuration for `remark-gfm`.
8
+ *
9
+ * Currently supports `singleTilde` as a parse option and
10
+ * `tableCellPadding`, `tablePipeAlign`, and `stringLength` as
11
+ * a serialization option.
12
+ */
13
+ export interface Options extends MicromarkOptions , MdastOptions { }
Original file line number Diff line number Diff line change 1
- /**
2
- * @typedef {import('./lib/index.js').Options } Options
3
- */
4
-
1
+ // Note: types exposed from `index.d.ts`.
5
2
export { default } from './lib/index.js'
Original file line number Diff line number Diff line change 1
1
/**
2
- * @import {Options as MdastOptions} from 'mdast-util-gfm'
3
2
* @import {Root} from 'mdast'
4
- * @import {Options as MicromarkOptions } from 'micromark-extension -gfm'
3
+ * @import {Options} from 'remark -gfm'
5
4
* @import {} from 'remark-parse'
6
5
* @import {} from 'remark-stringify'
7
6
* @import {Processor} from 'unified'
8
7
*/
9
8
10
- /**
11
- * @typedef {MicromarkOptions & MdastOptions } Options
12
- * Configuration.
13
- */
14
-
15
9
import { gfmFromMarkdown , gfmToMarkdown } from 'mdast-util-gfm'
16
10
import { gfm } from 'micromark-extension-gfm'
17
11
Original file line number Diff line number Diff line change 29
29
},
30
30
"exports" : " ./index.js" ,
31
31
"files" : [
32
- " index.d.ts.map" ,
33
32
" index.d.ts" ,
34
33
" index.js" ,
35
34
" lib/"
86
85
"version" : " 4.0.0" ,
87
86
"xo" : {
88
87
"overrides" : [
88
+ {
89
+ "files" : [
90
+ " **/*.d.ts"
91
+ ],
92
+ "rules" : {
93
+ "@typescript-eslint/array-type" : [
94
+ " error" ,
95
+ {
96
+ "default" : " generic"
97
+ }
98
+ ],
99
+ "@typescript-eslint/ban-types" : [
100
+ " error" ,
101
+ {
102
+ "extendDefaults" : true
103
+ }
104
+ ],
105
+ "@typescript-eslint/consistent-type-definitions" : [
106
+ " error" ,
107
+ " interface"
108
+ ]
109
+ }
110
+ },
89
111
{
90
112
"files" : [
91
113
" test/**/*.js"
Original file line number Diff line number Diff line change 12
12
"target" : " es2022"
13
13
},
14
14
"exclude" : [" coverage/" , " node_modules/" ],
15
- "include" : [" **/*.js" ]
15
+ "include" : [" **/*.js" , " index.d.ts " ]
16
16
}
You can’t perform that action at this time.
0 commit comments