From 3eef076d793080dc5d2e957545be5911d8195225 Mon Sep 17 00:00:00 2001 From: He Li Date: Tue, 23 Aug 2022 19:15:29 +0800 Subject: [PATCH] fix(deps): migrate `messageformat` to `@messageformat/core` (#442) Co-authored-by: JounQin --- package.json | 2 +- src/messages.js | 2 +- test/tests/__snapshots__/cli.spec.js.snap | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c4758ab..c4e83d6 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ } }, "dependencies": { + "@messageformat/core": "^3.0.1", "@prettier/eslint": "npm:prettier-eslint@^15.0.1", "arrify": "^2.0.1", "boolify": "^1.0.1", @@ -50,7 +51,6 @@ "indent-string": "^4.0.0", "lodash.memoize": "^4.1.2", "loglevel-colored-level-prefix": "^1.0.0", - "messageformat": "^2.3.0", "rxjs": "^7.5.6", "yargs": "^13.1.1" }, diff --git a/src/messages.js b/src/messages.js index f6c52f8..54b6c65 100644 --- a/src/messages.js +++ b/src/messages.js @@ -1,4 +1,4 @@ -import MessageFormat from 'messageformat'; +import MessageFormat from '@messageformat/core'; const mf = new MessageFormat('en'); diff --git a/test/tests/__snapshots__/cli.spec.js.snap b/test/tests/__snapshots__/cli.spec.js.snap index 18fdc6b..de14e58 100644 --- a/test/tests/__snapshots__/cli.spec.js.snap +++ b/test/tests/__snapshots__/cli.spec.js.snap @@ -17,6 +17,10 @@ Object { `; exports[`prettier-eslint test/fixtures/example*.js --write --no-eslint-ignore --no-prettier-ignore: stdout: prettier-eslint test/fixtures/example*.js --write --no-eslint-ignore --no-prettier-ignore 1`] = ` -"success formatting 2 files with prettier-eslint +"can't resolve reference #/definitions/directiveConfigSchema from id # +can't resolve reference #/definitions/directiveConfigSchema from id # +can't resolve reference #/definitions/directiveConfigSchema from id # +can't resolve reference #/definitions/directiveConfigSchema from id # +success formatting 2 files with prettier-eslint " `;