chore: update lint dependencies

This commit is contained in:
Christian Kaisermann 2021-09-30 11:06:23 -03:00
parent 60f7413cf8
commit 7cda01ef1c
5 changed files with 534 additions and 242 deletions

View File

@ -72,8 +72,8 @@
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"@kiwi/eslint-config": "^1.10.1",
"@kiwi/prettier-config": "^1.10.1",
"@kiwi/eslint-config": "^1.16.6",
"@kiwi/prettier-config": "^1.16.6",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-typescript": "^8.2.5",
"@types/dlv": "^1.1.2",
@ -86,12 +86,12 @@
"babel-jest": "^26.3.0",
"conventional-changelog-cli": "^2.1.0",
"cross-env": "^7.0.2",
"eslint": "^7.9.0",
"eslint": "^7.32.0",
"full-icu": "^1.3.1",
"husky": "^4.3.0",
"jest": "^26.4.2",
"lint-staged": "^10.4.0",
"prettier": "^2.1.2",
"prettier": "^2.4.1",
"rollup": "^2.27.1",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-commonjs": "^10.1.0",

View File

@ -54,6 +54,7 @@ export function getOptions() {
export function init(opts: ConfigureOptionsInit) {
const { formats, ...rest } = opts;
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const initialLocale = opts.initialLocale || opts.fallbackLocale;
Object.assign(options, rest, { initialLocale });

View File

@ -31,6 +31,7 @@ export function defineMessages(i: Record<string, MessageObject>) {
}
export function waitLocale(locale?: string) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/prefer-nullish-coalescing
return flush(locale || getCurrentLocale() || getOptions().initialLocale!);
}

View File

@ -56,7 +56,7 @@ const formatMessage: MessageFormatter = (id, options = {}) => {
);
}
message = defaultValue || id;
message = defaultValue ?? id;
} else if (typeof message !== 'string') {
console.warn(
`[svelte-i18n] Message with id "${id}" must be of type "string", found: "${typeof message}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`,

764
yarn.lock

File diff suppressed because it is too large Load Diff