Skip to content

Commit

Permalink
feat: use official eslint-plugin-markdown package (#304)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
JounQin authored Apr 7, 2021
1 parent 7b8e7bc commit e6828be
Show file tree
Hide file tree
Showing 10 changed files with 799 additions and 1,146 deletions.
2 changes: 1 addition & 1 deletion .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = require('@1stg/lint-staged')
module.exports = require('@1stg/lint-staged/tsc')
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@
"typecov": "type-coverage"
},
"devDependencies": {
"@1stg/lib-config": "^1.2.6",
"@1stg/lib-config": "^1.2.7",
"@1stg/tslint-config": "^1.2.0",
"@types/eslint": "^7.2.7",
"@types/jest": "^26.0.21",
"@types/node": "^14.14.35",
"@types/eslint": "^7.2.8",
"@types/eslint-plugin-markdown": "^2.0.0",
"@types/jest": "^26.0.22",
"@types/node": "^14.14.37",
"@types/react": "^17.0.3",
"@types/unist": "^2.0.3",
"eslint-mdx": "link:packages/eslint-mdx/src",
Expand All @@ -46,7 +47,7 @@
"resolutions": {
"@babel/core": "^7.13.14",
"prettier": "^2.2.1",
"tslib": "^2.1.0"
"tslib": "^2.2.0"
},
"commitlint": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"remark-mdx": "^1.6.22",
"remark-parse": "^8.0.3",
"tslib": "^2.1.0",
"tslib": "^2.2.0",
"unified": "^9.2.1"
}
}
3 changes: 2 additions & 1 deletion packages/eslint-plugin-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@
"dependencies": {
"cosmiconfig": "^7.0.0",
"eslint-mdx": "^1.12.0",
"eslint-plugin-markdown": "^2.0.1",
"remark-mdx": "^1.6.22",
"remark-parse": "^8.0.3",
"remark-stringify": "^8.1.1",
"tslib": "^2.1.0",
"tslib": "^2.2.0",
"unified": "^9.2.1",
"vfile": "^4.2.1"
}
Expand Down
13 changes: 6 additions & 7 deletions packages/eslint-plugin-mdx/src/processors/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { markdown } from './markdown'
import { remark } from './remark'
import * as processors from './remark'

/**
* workaround for @link https://github.com/benmosher/eslint-plugin-import/issues/2002
*/
export { processors }

export * from './helpers'
export * from './options'
export * from './types'

export const processors = {
markdown,
remark,
}
Loading

0 comments on commit e6828be

Please sign in to comment.