From 8d886033057964d760bd39cf5eadd4e51ccbb513 Mon Sep 17 00:00:00 2001 From: hided62 Date: Mon, 31 Aug 2026 04:25:17 +0000 Subject: [PATCH] =?UTF-8?q?fix(tooling):=20ESLint=20=EB=A9=94=EB=AA=A8?= =?UTF-8?q?=EB=A6=AC=20=EC=82=AC=EC=9A=A9=EB=9F=89=EC=9D=84=20=EC=A0=9C?= =?UTF-8?q?=ED=95=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eslint.config.js | 18 +++++++++++------- package.json | 4 ++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index e248a20a..f0886be4 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -6,6 +6,15 @@ import prettierConfig from 'eslint-config-prettier'; import prettierPlugin from 'eslint-plugin-prettier'; import globals from 'globals'; +// projectService reloads every TS project when this value changes between TS and Vue files. +const extraFileExtensions = ['.vue']; +const typedParserOptions = { + extraFileExtensions, + jsDocParsingMode: 'none', + projectService: true, + tsconfigRootDir: import.meta.dirname, +}; + export default tseslint.config( { ignores: [ @@ -39,11 +48,9 @@ export default tseslint.config( languageOptions: { parser: vueParser, parserOptions: { + ...typedParserOptions, parser: tseslint.parser, - extraFileExtensions: ['.vue'], sourceType: 'module', - projectService: true, - tsconfigRootDir: import.meta.dirname, }, }, rules: { @@ -55,10 +62,7 @@ export default tseslint.config( files: ['**/*.ts', '**/*.tsx'], languageOptions: { parser: tseslint.parser, - parserOptions: { - projectService: true, - tsconfigRootDir: import.meta.dirname, - }, + parserOptions: typedParserOptions, }, }, { diff --git a/package.json b/package.json index 26684de4..1c4a1934 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "version": "0.0.0", "packageManager": "pnpm@11.21.0", "scripts": { - "lint": "turbo lint", - "lint:fix": "turbo lint:fix", + "lint": "NODE_OPTIONS=--max-old-space-size=1024 turbo lint --concurrency=1", + "lint:fix": "NODE_OPTIONS=--max-old-space-size=1024 turbo lint:fix --concurrency=1", "format": "prettier --write .", "test": "turbo test --ui=stream --output-logs=errors-only", "test-verbose": "SAMMO_TEST_REPORTER=verbose turbo test --ui=stream --output-logs=full",