Skip to content

Commit e6828be

Browse files
authored
feat: use official eslint-plugin-markdown package (#304)
* feat: use official eslint-plugin-markdown package * chore: workaround for eslint-plugin-import issue import-js/eslint-plugin-import#2002 * chore: use @types/eslint-plugin-markdown
1 parent 7b8e7bc commit e6828be

File tree

10 files changed

+799
-1146
lines changed

10 files changed

+799
-1146
lines changed

.lintstagedrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@1stg/lint-staged')
1+
module.exports = require('@1stg/lint-staged/tsc')

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@
2424
"typecov": "type-coverage"
2525
},
2626
"devDependencies": {
27-
"@1stg/lib-config": "^1.2.6",
27+
"@1stg/lib-config": "^1.2.7",
2828
"@1stg/tslint-config": "^1.2.0",
29-
"@types/eslint": "^7.2.7",
30-
"@types/jest": "^26.0.21",
31-
"@types/node": "^14.14.35",
29+
"@types/eslint": "^7.2.8",
30+
"@types/eslint-plugin-markdown": "^2.0.0",
31+
"@types/jest": "^26.0.22",
32+
"@types/node": "^14.14.37",
3233
"@types/react": "^17.0.3",
3334
"@types/unist": "^2.0.3",
3435
"eslint-mdx": "link:packages/eslint-mdx/src",
@@ -46,7 +47,7 @@
4647
"resolutions": {
4748
"@babel/core": "^7.13.14",
4849
"prettier": "^2.2.1",
49-
"tslib": "^2.1.0"
50+
"tslib": "^2.2.0"
5051
},
5152
"commitlint": {
5253
"extends": [

packages/eslint-mdx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"dependencies": {
3636
"remark-mdx": "^1.6.22",
3737
"remark-parse": "^8.0.3",
38-
"tslib": "^2.1.0",
38+
"tslib": "^2.2.0",
3939
"unified": "^9.2.1"
4040
}
4141
}

packages/eslint-plugin-mdx/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@
3535
"dependencies": {
3636
"cosmiconfig": "^7.0.0",
3737
"eslint-mdx": "^1.12.0",
38+
"eslint-plugin-markdown": "^2.0.1",
3839
"remark-mdx": "^1.6.22",
3940
"remark-parse": "^8.0.3",
4041
"remark-stringify": "^8.1.1",
41-
"tslib": "^2.1.0",
42+
"tslib": "^2.2.0",
4243
"unified": "^9.2.1",
4344
"vfile": "^4.2.1"
4445
}
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import { markdown } from './markdown'
2-
import { remark } from './remark'
1+
import * as processors from './remark'
2+
3+
/**
4+
* workaround for @link https://github.com/benmosher/eslint-plugin-import/issues/2002
5+
*/
6+
export { processors }
37

48
export * from './helpers'
59
export * from './options'
610
export * from './types'
7-
8-
export const processors = {
9-
markdown,
10-
remark,
11-
}

0 commit comments

Comments
 (0)