From 51bd5e2c4d142e926df06a124ff96dd2e3bc795f Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Wed, 9 Oct 2024 12:51:22 +0800 Subject: [PATCH 1/6] feat: removing node-xlsx --- .eslintrc.cjs | 56 - astro.config.mjs | 13 +- eslint.config.mjs | 54 + package.json | 80 +- pnpm-lock.yaml | 6139 +++++++++++++------------- src/components/header.astro | 2 +- src/components/home/home-item.astro | 8 +- src/layouts/base-layout.astro | 11 +- src/pages/[lang]/index.astro | 14 +- src/pages/address-to-english.json.ts | 4 + src/utils/get-address-data-json.ts | 16 +- 11 files changed, 3228 insertions(+), 3169 deletions(-) delete mode 100644 .eslintrc.cjs create mode 100644 eslint.config.mjs diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 4292695..0000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,56 +0,0 @@ -module.exports = { - parser: "@typescript-eslint/parser", - parserOptions: { - sourceType: "module", - ecmaVersion: "latest", - }, - // ... - overrides: [ - { - // Define the configuration for `.astro` file. - files: ["*.astro"], - // Enable this plugin - plugins: ["astro"], - env: { - // Enables global variables available in Astro components. - node: true, - "astro/astro": true, - es2020: true, - }, - // Allows Astro components to be parsed. - parser: "astro-eslint-parser", - // Parse the script in `.astro` as TypeScript by adding the following configuration. - // It's the setting you need when using TypeScript. - parserOptions: { - extraFileExtensions: [".astro"], - // The script of Astro components uses ESM. - }, - rules: { - // Enable recommended rules - "astro/no-conflict-set-directives": "error", - "astro/no-unused-define-vars-in-style": "error", - - // override/add rules settings here, such as: - // "astro/no-set-html-directive": "error" - }, - }, - { - // Define the configuration for `