From 73792ec0ea100bc91bbb9be1344e4b7e2b864c58 Mon Sep 17 00:00:00 2001 From: Lurantis <1510033076@qq.com> Date: Sun, 18 Feb 2024 23:53:16 +0800 Subject: [PATCH] build(deps): :arrow_down: revert eslint config --- .eslintrc | 3 ++ .vscode/settings.json | 2 +- app.vue | 10 +++--- eslint.config.js | 3 -- locales/en-US.yml | 78 +++++++++++++++++++++---------------------- nuxt-i18n.ts | 6 ++-- 6 files changed, 52 insertions(+), 50 deletions(-) create mode 100644 .eslintrc delete mode 100644 eslint.config.js diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..188e9ba --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": ["@antfu"] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 1e8faea..77e3bde 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,7 +3,7 @@ "i18n-ally.keystyle": "nested", "i18n-ally.sourceLanguage": "zh-Hans", "typescript.tsdk": "./node_modules/typescript/lib", - + /* https://github.com/antfu/eslint-config */ // Enable the ESlint flat config support "eslint.experimental.useFlatConfig": true, diff --git a/app.vue b/app.vue index dd2b31f..0b5c491 100644 --- a/app.vue +++ b/app.vue @@ -8,10 +8,12 @@ useHead({ // TODO: Hack to change cache config // https://github.com/nuxt-modules/apollo/issues/443 const { clients } = useApollo() -clients.default.cache = cache -clients.default.localState.cache = cache -clients.default.queryManager.cache = cache -clients.default.resetStore() +clients!.default.cache = cache +// Property 'localState' is private and only accessible within class 'ApolloClient' +// clients!.default.localState.cache = cache +// Property 'queryManager' is private and only accessible within class 'ApolloClient'. +// clients!.default.queryManager.cache = cache +clients!.default.resetStore()