diff --git a/.prettierignore b/.prettierignore index 06ea1024..720285df 100644 --- a/.prettierignore +++ b/.prettierignore @@ -16,3 +16,4 @@ qodana.yaml # data !src/data/**/*.json src-tauri/gen/*.json +!eslint diff --git a/eslint.config.js b/eslint.config.js index 5e39d04b..8acb483b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,11 +1,20 @@ +import eslint_jsonc from "eslint-plugin-jsonc"; +import eslint_js from "@eslint/js"; +import eslint_ts from "typescript-eslint"; +import eslint_vue from "eslint-plugin-vue"; + import { jsonEslintConfig } from "./eslint/jsonEslint.js"; import { vueEslintConfig } from "./eslint/vueEslint.js"; import ymlEslintConfig from "./eslint/ymlEslint.js"; export default [ + eslint_js.configs.recommended, + ...eslint_jsonc.configs["flat/recommended-with-jsonc"], + ...eslint_ts.configs.recommended, + ...eslint_vue.configs["flat/essential"], ...jsonEslintConfig, - ymlEslintConfig, ...vueEslintConfig, + ymlEslintConfig, { ignores: [ "dist", @@ -13,7 +22,7 @@ export default [ "pnpm-lock.yaml", "src/data/**/*.json", "src-tauri/tauri.conf.json", - "src-tauri/gen/*.json", + "src-tauri/**/*.json", "qodana.yaml", ".github", ".vscode", diff --git a/eslint/jsonEslint.js b/eslint/jsonEslint.js index dc515b50..144c1c84 100644 --- a/eslint/jsonEslint.js +++ b/eslint/jsonEslint.js @@ -1,14 +1,10 @@ -import eslint_jsonc from "eslint-plugin-jsonc"; -import jsonc_parser from "jsonc-eslint-parser"; +import pluginJsonc from "eslint-plugin-jsonc"; +import parserJsonc from "jsonc-eslint-parser"; const pkgJsonConfig = { files: ["package.json"], - plugins: { - jsonc: eslint_jsonc, - }, - languageOptions: { - parser: jsonc_parser, - }, + plugins: { jsonc: pluginJsonc }, + languageOptions: { parser: parserJsonc }, rules: { "jsonc/comma-dangle": ["error", "never"], "jsonc/sort-keys": [ @@ -38,12 +34,8 @@ const pkgJsonConfig = { const tscJsonConfig = { files: ["tsconfig.json"], - plugins: { - jsonc: eslint_jsonc, - }, - languageOptions: { - parser: jsonc_parser, - }, + plugins: { jsonc: pluginJsonc }, + languageOptions: { parser: parserJsonc }, rules: { "jsonc/comma-dangle": ["error", "never"], "jsonc/sort-keys": [ @@ -66,29 +58,12 @@ const tscJsonConfig = { const jsoncConfig = { files: ["source/data/out/**/*.json", ".vscode/**/*.json"], - plugins: { - jsonc: eslint_jsonc, - }, - languageOptions: { - parser: jsonc_parser, - }, + plugins: { jsonc: pluginJsonc }, + languageOptions: { parser: parserJsonc }, rules: { "jsonc/comma-dangle": ["error", "never"], - "jsonc/sort-keys": [ - "error", - { - pathPattern: "^$", - order: { - type: "asc", - }, - }, - ], + "jsonc/sort-keys": ["error", { pathPattern: "^$", order: { type: "asc" } }], }, }; -export const jsonEslintConfig = [ - ...eslint_jsonc.configs["flat/recommended-with-json"], - pkgJsonConfig, - tscJsonConfig, - jsoncConfig, -]; +export const jsonEslintConfig = [pkgJsonConfig, tscJsonConfig, jsoncConfig]; diff --git a/eslint/vueEslint.js b/eslint/vueEslint.js index feb2f32a..3a9a1792 100644 --- a/eslint/vueEslint.js +++ b/eslint/vueEslint.js @@ -1,7 +1,5 @@ -import eslint_js from "@eslint/js"; -import eslint_import from "eslint-plugin-import"; -import eslint_prettier from "eslint-plugin-prettier"; -import eslint_vue from "eslint-plugin-vue"; +import pluginImport from "eslint-plugin-import"; +import pluginPrettier from "eslint-plugin-prettier"; import pluginVue from "eslint-plugin-vue"; import globals from "globals"; import eslint_ts from "typescript-eslint"; @@ -32,35 +30,20 @@ const tsConfigRules = { }; const tsConfig = { - files: ["*.ts"], - plugins: { - typescript: eslint_ts, - import: eslint_import, - prettier: eslint_prettier, - }, + files: ["*.ts", "*.d.ts", "src/**/*.ts", "src/**/*.d.ts"], + plugins: { typescript: eslint_ts, import: pluginImport, prettier: pluginPrettier }, languageOptions: { parser: eslint_ts.parser, - parserOptions: { - project: "tsconfig.json", - tsconfigRootDir: ".", - }, + parserOptions: { project: "tsconfig.json", tsconfigRootDir: "." }, }, rules: tsConfigRules, }; const vueConfig = { - plugins: { - vue: eslint_vue, - import: eslint_import, - prettier: eslint_prettier, - }, + files: ["src/**/*.vue"], + plugins: { vue: pluginVue, import: pluginImport, prettier: pluginPrettier }, languageOptions: { - globals: { - ...globals.browser, - ...globals.es2021, - TGApp: "readonly", - window: "readonly", - }, + globals: { ...globals.browser, ...globals.es2021, TGApp: "readonly", window: "readonly" }, ecmaVersion: "latest", sourceType: "module", parser: vue_parser, @@ -71,17 +54,7 @@ const vueConfig = { tsconfigRootDir: ".", }, }, - rules: { - ...tsConfigRules, - "vue/multi-word-component-names": "off", - }, + rules: { ...tsConfigRules, "vue/multi-word-component-names": "off" }, }; -export const vueEslintConfig = [ - eslint_js.configs.recommended, - ...eslint_ts.configs.recommended, - ...eslint_vue.configs["flat/essential"], - ...pluginVue.configs["flat/essential"], - tsConfig, - vueConfig, -]; +export const vueEslintConfig = [tsConfig, vueConfig]; diff --git a/eslint/ymlEslint.js b/eslint/ymlEslint.js index 0356fe12..d80402eb 100644 --- a/eslint/ymlEslint.js +++ b/eslint/ymlEslint.js @@ -1,28 +1,17 @@ -import eslint_yml from "eslint-plugin-yml"; -import yml_parser from "yaml-eslint-parser"; +import pluginYml from "eslint-plugin-yml"; +import parserYml from "yaml-eslint-parser"; const ymlEslintConfig = { files: ["**/*.yml", "**/*.yaml"], - plugins: { - yml: eslint_yml, - }, + plugins: { yml: pluginYml }, languageOptions: { - parser: yml_parser, - parserOptions: { - defaultYAMLVersion: "1.2", - extraFileExtensions: [".yaml", ".yml"], - }, + parser: parserYml, + parserOptions: { defaultYAMLVersion: "1.2", extraFileExtensions: [".yaml", ".yml"] }, }, rules: { "yml/indent": ["error", 2], "yml/key-spacing": ["error"], - "yml/quotes": [ - "error", - { - prefer: "double", - avoidEscape: true, - }, - ], + "yml/quotes": ["error", { prefer: "double", avoidEscape: true }], "yml/sort-keys": ["error", "asc"], }, }; diff --git a/package.json b/package.json index 29f5a437..e94ea000 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "TeyvatGuide", + "name": "teyvatguide", "version": "0.6.2", "description": "Game Tool for GenshinImpact player", "private": true, @@ -107,13 +107,9 @@ "@vitejs/plugin-vue": "^5.1.4", "concurrently": "^9.0.1", "eslint": "^9.13.0", - "eslint-config-love": "^96.0.0", - "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsonc": "^2.16.0", - "eslint-plugin-n": "^17.12.0", "eslint-plugin-prettier": "^5.2.1", - "eslint-plugin-promise": "^7.1.0", "eslint-plugin-vue": "^9.30.0", "eslint-plugin-yml": "^1.15.0", "globals": "^15.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 72a95599..6f4c869f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -129,27 +129,15 @@ importers: eslint: specifier: ^9.13.0 version: 9.13.0(jiti@1.21.6) - eslint-config-love: - specifier: ^96.0.0 - version: 96.0.0(@typescript-eslint/parser@8.12.2(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3))(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3) - eslint-config-prettier: - specifier: ^9.1.0 - version: 9.1.0(eslint@9.13.0(jiti@1.21.6)) eslint-plugin-import: specifier: ^2.31.0 version: 2.31.0(@typescript-eslint/parser@8.12.2(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3))(eslint@9.13.0(jiti@1.21.6)) eslint-plugin-jsonc: specifier: ^2.16.0 version: 2.16.0(eslint@9.13.0(jiti@1.21.6)) - eslint-plugin-n: - specifier: ^17.12.0 - version: 17.12.0(eslint@9.13.0(jiti@1.21.6)) eslint-plugin-prettier: specifier: ^5.2.1 version: 5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.13.0(jiti@1.21.6)))(eslint@9.13.0(jiti@1.21.6))(prettier@3.3.3) - eslint-plugin-promise: - specifier: ^7.1.0 - version: 7.1.0(eslint@9.13.0(jiti@1.21.6)) eslint-plugin-vue: specifier: ^9.30.0 version: 9.30.0(eslint@9.13.0(jiti@1.21.6)) @@ -936,10 +924,6 @@ packages: typescript: optional: true - '@typescript-eslint/scope-manager@8.11.0': - resolution: {integrity: sha512-Uholz7tWhXmA4r6epo+vaeV7yjdKy5QFCERMjs1kMVsLRKIrSdM6o21W2He9ftp5PP6aWOVpD5zvrvuHZC0bMQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/scope-manager@8.12.2': resolution: {integrity: sha512-gPLpLtrj9aMHOvxJkSbDBmbRuYdtiEbnvO25bCMza3DhMjTQw0u7Y1M+YR5JPbMsXXnSPuCf5hfq0nEkQDL/JQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -953,23 +937,10 @@ packages: typescript: optional: true - '@typescript-eslint/types@8.11.0': - resolution: {integrity: sha512-tn6sNMHf6EBAYMvmPUaKaVeYvhUsrE6x+bXQTxjQRp360h1giATU0WvgeEys1spbvb5R+VpNOZ+XJmjD8wOUHw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/types@8.12.2': resolution: {integrity: sha512-VwDwMF1SZ7wPBUZwmMdnDJ6sIFk4K4s+ALKLP6aIQsISkPv8jhiw65sAK6SuWODN/ix+m+HgbYDkH+zLjrzvOA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/typescript-estree@8.11.0': - resolution: {integrity: sha512-yHC3s1z1RCHoCz5t06gf7jH24rr3vns08XXhfEqzYpd6Hll3z/3g23JRi0jM8A47UFKNc3u/y5KIMx8Ynbjohg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - '@typescript-eslint/typescript-estree@8.12.2': resolution: {integrity: sha512-mME5MDwGe30Pq9zKPvyduyU86PH7aixwqYR2grTglAdB+AN8xXQ1vFGpYaUSJ5o5P/5znsSBeNcs5g5/2aQwow==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -979,22 +950,12 @@ packages: typescript: optional: true - '@typescript-eslint/utils@8.11.0': - resolution: {integrity: sha512-CYiX6WZcbXNJV7UNB4PLDIBtSdRmRI/nb0FMyqHPTQD1rMjA0foPLaPUV39C/MxkTd/QKSeX+Gb34PPsDVC35g==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^8.57.0 || ^9.0.0 - '@typescript-eslint/utils@8.12.2': resolution: {integrity: sha512-UTTuDIX3fkfAz6iSVa5rTuSfWIYZ6ATtEocQ/umkRSyC9O919lbZ8dcH7mysshrCdrAM03skJOEYaBugxN+M6A==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: eslint: ^8.57.0 || ^9.0.0 - '@typescript-eslint/visitor-keys@8.11.0': - resolution: {integrity: sha512-EaewX6lxSjRJnc+99+dqzTeoDZUfyrA52d2/HRrkI830kgovWsmIiTfmr0NZorzqic7ga+1bS60lRBUgR3n/Bw==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@typescript-eslint/visitor-keys@8.12.2': resolution: {integrity: sha512-PChz8UaKQAVNHghsHcPyx1OMHoFRUEA7rJSK/mDhdq85bk+PLsUHUBqTQTFt18VJZbmxBovM65fezlheQRsSDA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1447,10 +1408,6 @@ packages: emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} - enhanced-resolve@5.17.1: - resolution: {integrity: sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==} - engines: {node: '>=10.13.0'} - entities@4.5.0: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} @@ -1523,12 +1480,6 @@ packages: peerDependencies: eslint: '>=6.0.0' - eslint-config-love@96.0.0: - resolution: {integrity: sha512-IoXpOWvPL8Me8zACmldwjknRfZ2HhA7HJ563mTaT4hEd5aPvecdOsvwTdGTJTYfeJPcZApIloMCyUJS1OjA1dA==} - peerDependencies: - eslint: ^9.0.0 - typescript: '*' - eslint-config-prettier@9.1.0: resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} hasBin: true @@ -1559,12 +1510,6 @@ packages: eslint-import-resolver-webpack: optional: true - eslint-plugin-es-x@7.8.0: - resolution: {integrity: sha512-7Ds8+wAAoV3T+LAKeu39Y5BzXCrGKrcISfgKEqTS4BDN8SFEDQd0S43jiQ8vIa3wUKD07qitZdfzlenSi8/0qQ==} - engines: {node: ^14.18.0 || >=16.0.0} - peerDependencies: - eslint: '>=8' - eslint-plugin-import@2.31.0: resolution: {integrity: sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A==} engines: {node: '>=4'} @@ -1581,12 +1526,6 @@ packages: peerDependencies: eslint: '>=6.0.0' - eslint-plugin-n@17.12.0: - resolution: {integrity: sha512-zNAtz/erDn0v78bIY3MASSQlyaarV4IOTvP5ldHsqblRFrXriikB6ghkDTkHjUad+nMRrIbOy9euod2azjRfBg==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: '>=8.23.0' - eslint-plugin-prettier@5.2.1: resolution: {integrity: sha512-gH3iR3g4JfF+yYPaJYkN7jEl9QbweL/YfkoRlNnuIEHEz1vHVlCmWOS+eGGiRuzHQXdJFCOTxRgvju9b8VUmrw==} engines: {node: ^14.18.0 || >=16.0.0} @@ -1601,12 +1540,6 @@ packages: eslint-config-prettier: optional: true - eslint-plugin-promise@7.1.0: - resolution: {integrity: sha512-8trNmPxdAy3W620WKDpaS65NlM5yAumod6XeC4LOb+jxlkG4IVcp68c6dXY2ev+uT4U1PtG57YDV6EGAXN0GbQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - peerDependencies: - eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 - eslint-plugin-vue@9.30.0: resolution: {integrity: sha512-CyqlRgShvljFkOeYK8wN5frh/OGTvkj1S7wlr2Q2pUvwq+X5VYiLd6ZjujpgSgLnys2W8qrBLkXQ41SUYaoPIQ==} engines: {node: ^14.17.0 || >=16.0.0} @@ -1793,9 +1726,6 @@ packages: resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==} engines: {node: '>= 0.4'} - get-tsconfig@4.8.1: - resolution: {integrity: sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==} - giget@1.2.3: resolution: {integrity: sha512-8EHPljDvs7qKykr6uw8b+lqLiUc/vUg+KVTI0uND4s63TdsZM2Xus3mflvF0DDG9SiM4RlCkFGL+7aAjRmV7KA==} hasBin: true @@ -2515,9 +2445,6 @@ packages: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} - resolve-pkg-maps@1.0.0: - resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - resolve@1.22.8: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true @@ -2796,10 +2723,6 @@ packages: resolution: {integrity: sha512-w2sfv80nrAh2VCbqR5AK27wswXhqcck2AhfnNW76beQXskGZ1V12GwS//yYVa3d3fcvAip2OUnbDAjW2k3v9fA==} engines: {node: '>=10.0.0'} - tapable@2.2.1: - resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} - engines: {node: '>=6'} - tar@6.2.1: resolution: {integrity: sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==} engines: {node: '>=10'} @@ -3819,11 +3742,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/scope-manager@8.11.0': - dependencies: - '@typescript-eslint/types': 8.11.0 - '@typescript-eslint/visitor-keys': 8.11.0 - '@typescript-eslint/scope-manager@8.12.2': dependencies: '@typescript-eslint/types': 8.12.2 @@ -3841,25 +3759,8 @@ snapshots: - eslint - supports-color - '@typescript-eslint/types@8.11.0': {} - '@typescript-eslint/types@8.12.2': {} - '@typescript-eslint/typescript-estree@8.11.0(typescript@5.6.3)': - dependencies: - '@typescript-eslint/types': 8.11.0 - '@typescript-eslint/visitor-keys': 8.11.0 - debug: 4.3.7 - fast-glob: 3.3.2 - is-glob: 4.0.3 - minimatch: 9.0.5 - semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.6.3) - optionalDependencies: - typescript: 5.6.3 - transitivePeerDependencies: - - supports-color - '@typescript-eslint/typescript-estree@8.12.2(typescript@5.6.3)': dependencies: '@typescript-eslint/types': 8.12.2 @@ -3875,17 +3776,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.11.0(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3)': - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.13.0(jiti@1.21.6)) - '@typescript-eslint/scope-manager': 8.11.0 - '@typescript-eslint/types': 8.11.0 - '@typescript-eslint/typescript-estree': 8.11.0(typescript@5.6.3) - eslint: 9.13.0(jiti@1.21.6) - transitivePeerDependencies: - - supports-color - - typescript - '@typescript-eslint/utils@8.12.2(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.13.0(jiti@1.21.6)) @@ -3897,11 +3787,6 @@ snapshots: - supports-color - typescript - '@typescript-eslint/visitor-keys@8.11.0': - dependencies: - '@typescript-eslint/types': 8.11.0 - eslint-visitor-keys: 3.4.3 - '@typescript-eslint/visitor-keys@8.12.2': dependencies: '@typescript-eslint/types': 8.12.2 @@ -4423,11 +4308,6 @@ snapshots: emoji-regex@8.0.0: {} - enhanced-resolve@5.17.1: - dependencies: - graceful-fs: 4.2.11 - tapable: 2.2.1 - entities@4.5.0: {} env-paths@2.2.1: {} @@ -4554,24 +4434,10 @@ snapshots: eslint: 9.13.0(jiti@1.21.6) semver: 7.6.3 - eslint-config-love@96.0.0(@typescript-eslint/parser@8.12.2(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3))(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3): - dependencies: - '@typescript-eslint/utils': 8.11.0(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3) - eslint: 9.13.0(jiti@1.21.6) - eslint-plugin-import: 2.31.0(@typescript-eslint/parser@8.12.2(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3))(eslint@9.13.0(jiti@1.21.6)) - eslint-plugin-n: 17.12.0(eslint@9.13.0(jiti@1.21.6)) - eslint-plugin-promise: 7.1.0(eslint@9.13.0(jiti@1.21.6)) - typescript: 5.6.3 - typescript-eslint: 8.12.2(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3) - transitivePeerDependencies: - - '@typescript-eslint/parser' - - eslint-import-resolver-typescript - - eslint-import-resolver-webpack - - supports-color - eslint-config-prettier@9.1.0(eslint@9.13.0(jiti@1.21.6)): dependencies: eslint: 9.13.0(jiti@1.21.6) + optional: true eslint-import-resolver-node@0.3.9: dependencies: @@ -4591,13 +4457,6 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-plugin-es-x@7.8.0(eslint@9.13.0(jiti@1.21.6)): - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.13.0(jiti@1.21.6)) - '@eslint-community/regexpp': 4.11.0 - eslint: 9.13.0(jiti@1.21.6) - eslint-compat-utils: 0.5.1(eslint@9.13.0(jiti@1.21.6)) - eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.12.2(eslint@9.13.0(jiti@1.21.6))(typescript@5.6.3))(eslint@9.13.0(jiti@1.21.6)): dependencies: '@rtsao/scc': 1.1.0 @@ -4638,18 +4497,6 @@ snapshots: natural-compare: 1.4.0 synckit: 0.6.2 - eslint-plugin-n@17.12.0(eslint@9.13.0(jiti@1.21.6)): - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.13.0(jiti@1.21.6)) - enhanced-resolve: 5.17.1 - eslint: 9.13.0(jiti@1.21.6) - eslint-plugin-es-x: 7.8.0(eslint@9.13.0(jiti@1.21.6)) - get-tsconfig: 4.8.1 - globals: 15.11.0 - ignore: 5.3.2 - minimatch: 9.0.5 - semver: 7.6.3 - eslint-plugin-prettier@5.2.1(@types/eslint@9.6.1)(eslint-config-prettier@9.1.0(eslint@9.13.0(jiti@1.21.6)))(eslint@9.13.0(jiti@1.21.6))(prettier@3.3.3): dependencies: eslint: 9.13.0(jiti@1.21.6) @@ -4660,10 +4507,6 @@ snapshots: '@types/eslint': 9.6.1 eslint-config-prettier: 9.1.0(eslint@9.13.0(jiti@1.21.6)) - eslint-plugin-promise@7.1.0(eslint@9.13.0(jiti@1.21.6)): - dependencies: - eslint: 9.13.0(jiti@1.21.6) - eslint-plugin-vue@9.30.0(eslint@9.13.0(jiti@1.21.6)): dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.13.0(jiti@1.21.6)) @@ -4900,10 +4743,6 @@ snapshots: es-errors: 1.3.0 get-intrinsic: 1.2.4 - get-tsconfig@4.8.1: - dependencies: - resolve-pkg-maps: 1.0.0 - giget@1.2.3: dependencies: citty: 0.1.6 @@ -5573,8 +5412,6 @@ snapshots: resolve-from@5.0.0: {} - resolve-pkg-maps@1.0.0: {} - resolve@1.22.8: dependencies: is-core-module: 2.15.1 @@ -5911,8 +5748,6 @@ snapshots: string-width: 4.2.3 strip-ansi: 6.0.1 - tapable@2.2.1: {} - tar@6.2.1: dependencies: chownr: 2.0.0 diff --git a/tsconfig.json b/tsconfig.json index 2d35cc3f..b7c14919 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "moduleResolution": "NodeNext", "strict": true, "jsx": "preserve", + "rootDir": ".", "sourceMap": true, "resolveJsonModule": true, "isolatedModules": true,