Skip to content

Commit a91b9df

Browse files
committed
chore: bump all (dev)Dependencies
1 parent c82b67b commit a91b9df

File tree

10 files changed

+2946
-2182
lines changed

10 files changed

+2946
-2182
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"publish": {
2424
"ignoreChanges": [
25-
"test",
25+
"**/test/**",
2626
"*.md"
2727
]
2828
}

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,31 @@
2727
"type-coverage": "type-coverage --cache --detail --ignore-catch --ignore-files '**/*.d.ts' --strict"
2828
},
2929
"devDependencies": {
30-
"@1stg/lib-config": "^0.2.0",
31-
"@1stg/tslint-config": "^0.6.0",
32-
"@types/eslint": "^6.1.7",
33-
"@types/jest": "^25.1.1",
34-
"@types/node": "^13.7.0",
35-
"@types/react": "^16.9.19",
36-
"@types/rebass": "^4.0.4",
30+
"@1stg/lib-config": "^0.4.5",
31+
"@1stg/tslint-config": "^0.8.3",
32+
"@types/eslint": "^6.8.0",
33+
"@types/jest": "^25.2.1",
34+
"@types/node": "^13.11.1",
35+
"@types/react": "^16.9.33",
36+
"@types/rebass": "^4.0.5",
3737
"@types/unist": "^2.0.3",
3838
"cosmiconfig": "^6.0.0",
3939
"eslint-mdx": "link:packages/eslint-mdx/src",
4040
"eslint-plugin-mdx": "link:packages/eslint-plugin-mdx/src",
4141
"lerna": "^3.20.2",
4242
"npm-run-all": "^4.1.5",
43-
"react": "^16.12.0",
44-
"ts-jest": "^25.1.0",
45-
"ts-node": "^8.6.2",
46-
"tslint": "^6.0.0",
47-
"type-coverage": "^2.4.0",
48-
"yarn-deduplicate": "^1.1.1"
43+
"react": "^16.13.1",
44+
"ts-jest": "^25.3.1",
45+
"ts-node": "^8.8.2",
46+
"tslint": "^6.1.1",
47+
"type-coverage": "^2.4.2",
48+
"yarn-deduplicate": "^2.0.0"
4949
},
5050
"resolutions": {
51-
"@babel/core": "^7.8.4",
52-
"@babel/preset-env": "^7.8.4",
51+
"@babel/core": "^7.9.0",
52+
"@babel/preset-env": "^7.9.0",
5353
"eslint-plugin-prettier": "^3.1.2",
54-
"typescript": "^3.7.5"
54+
"typescript": "^3.8.3"
5555
},
5656
"commitlint": {
5757
"extends": [

packages/eslint-mdx/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
],
2525
"keywords": [
2626
"eslint",
27+
"eslint-mdx",
2728
"eslint-parser",
2829
"eslint-parser-mdx",
29-
"mdx",
30-
"eslint-mdx"
30+
"mdx"
3131
],
3232
"peerDependencies": {
3333
"eslint": ">=5.0.0"
3434
},
3535
"dependencies": {
36-
"espree": "^6.1.2",
37-
"remark-mdx": "^1.5.5",
38-
"remark-parse": "^7.0.2",
39-
"tslib": "^1.10.0",
40-
"unified": "^8.4.2"
36+
"espree": "^6.2.1",
37+
"remark-mdx": "^1.5.8",
38+
"remark-parse": "^8.0.0",
39+
"tslib": "^1.11.1",
40+
"unified": "^9.0.0"
4141
}
4242
}

packages/eslint-mdx/src/parser.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@ import {
2424
ParserOptions,
2525
} from './types'
2626

27-
export const mdxProcessor = unified()
28-
.use(remarkParse)
29-
.use(remarkMdx)
30-
.freeze()
27+
export const mdxProcessor = unified().use(remarkParse).use(remarkMdx).freeze()
3128

3229
export const AST_PROPS = ['body', 'comments', 'tokens'] as const
3330
export const ES_NODE_TYPES: readonly string[] = ['export', 'import', 'jsx']

packages/eslint-plugin-mdx/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,24 @@
2424
],
2525
"keywords": [
2626
"eslint",
27+
"eslint-mdx",
2728
"eslint-plugin",
2829
"eslint-plugin-mdx",
29-
"mdx",
30-
"eslint-mdx"
30+
"mdx"
3131
],
3232
"peerDependencies": {
3333
"eslint": ">=5.0.0"
3434
},
3535
"dependencies": {
3636
"cosmiconfig": "^6.0.0",
3737
"eslint-mdx": "^1.6.8",
38-
"eslint-plugin-react": ">=7.0.0",
39-
"remark-mdx": "^1.5.5",
40-
"remark-parse": "^7.0.2",
41-
"remark-stringify": "^7.0.4",
42-
"tslib": "^1.10.0",
43-
"unified": "^8.4.2",
44-
"vfile": "^4.0.2"
38+
"eslint-plugin-react": "^7.19.0",
39+
"remark-mdx": "^1.5.8",
40+
"remark-parse": "^8.0.0",
41+
"remark-stringify": "^8.0.0",
42+
"tslib": "^1.11.1",
43+
"unified": "^9.0.0",
44+
"vfile": "^4.1.0"
4545
},
4646
"optionalDependencies": {
4747
"rebass": "^4.0.7"

packages/eslint-plugin-mdx/src/configs/recommended.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import { version } from 'eslint/package.json'
22

33
import { base } from './base'
44

5-
const minorVersion = +version
6-
.split('.')
7-
.slice(0, 2)
8-
.join('.')
5+
const minorVersion = +version.split('.').slice(0, 2).join('.')
96

107
export const recommended = {
118
...base,

packages/eslint-plugin-mdx/src/rules/helper.ts

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ export const getRemarkProcessor = (searchFrom: string) => {
4949
}
5050

5151
if (!remarkProcessor) {
52-
remarkProcessor = unified()
53-
.use(remarkParse)
54-
.freeze()
52+
remarkProcessor = unified().use(remarkParse).freeze()
5553
}
5654

5755
/* istanbul ignore next */
@@ -65,27 +63,21 @@ export const getRemarkProcessor = (searchFrom: string) => {
6563
// eslint-disable-next-line node/no-extraneous-require
6664
plugins.push([require.resolve('remark-lint-file-extension'), false])
6765
} catch (e) {
68-
// just ignore if the package does not
66+
// just ignore if the package does not exist
6967
}
7068

7169
return plugins
72-
.reduce(
73-
(processor, pluginWithSettings) => {
74-
const [plugin, ...pluginSettings] = Array.isArray(pluginWithSettings)
75-
? pluginWithSettings
76-
: [pluginWithSettings]
77-
return processor.use(
78-
/* istanbul ignore next */
79-
typeof plugin === 'string'
80-
? requirePkg(plugin, 'remark', filepath)
81-
: plugin,
82-
...pluginSettings,
83-
)
84-
},
85-
remarkProcessor()
86-
.use({ settings })
87-
.use(remarkStringify)
88-
.use(remarkMdx),
89-
)
70+
.reduce((processor, pluginWithSettings) => {
71+
const [plugin, ...pluginSettings] = Array.isArray(pluginWithSettings)
72+
? pluginWithSettings
73+
: [pluginWithSettings]
74+
return processor.use(
75+
/* istanbul ignore next */
76+
typeof plugin === 'string'
77+
? requirePkg(plugin, 'remark', filepath)
78+
: plugin,
79+
...pluginSettings,
80+
)
81+
}, remarkProcessor().use({ settings }).use(remarkStringify).use(remarkMdx))
9082
.freeze()
9183
}

test/__snapshots__/fixtures.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
exports[`fixtures should match all snapshots: adjacent.mdx 1`] = `
44
"import Basic from './basic'
55
6-
<Basic />
7-
<Basic />
6+
<Basic /> <Basic />
87
"
98
`;
109

@@ -36,7 +35,7 @@ Lorem ipsum dolor sit _amet_, consectetur adipiscing elit. Ut ac lobortis velit.
3635
`;
3736

3837
exports[`fixtures should match all snapshots: blank-lines.mdx 1`] = `
39-
"import {Box} from '@rebass/emotion'
38+
"import { Box } from '@rebass/emotion'
4039
4140
# Getting Started
4241
@@ -87,6 +86,7 @@ exports[`fixtures should match all snapshots: no-jsx-html-comments.mdx 1`] = `
8786
8887
<header>Header{/** JSX HTML comment */}</header>
8988
<main>Main Content</main>
89+
9090
<header>
9191
Header
9292
{/** JSX

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
4+
"incremental": false,
45
"noEmit": true
56
},
67
"references": [

0 commit comments

Comments
 (0)