fix(tooling): ESLint 메모리 사용량을 제한
This commit is contained in:
+11
-7
@@ -6,6 +6,15 @@ import prettierConfig from 'eslint-config-prettier';
|
|||||||
import prettierPlugin from 'eslint-plugin-prettier';
|
import prettierPlugin from 'eslint-plugin-prettier';
|
||||||
import globals from 'globals';
|
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(
|
export default tseslint.config(
|
||||||
{
|
{
|
||||||
ignores: [
|
ignores: [
|
||||||
@@ -39,11 +48,9 @@ export default tseslint.config(
|
|||||||
languageOptions: {
|
languageOptions: {
|
||||||
parser: vueParser,
|
parser: vueParser,
|
||||||
parserOptions: {
|
parserOptions: {
|
||||||
|
...typedParserOptions,
|
||||||
parser: tseslint.parser,
|
parser: tseslint.parser,
|
||||||
extraFileExtensions: ['.vue'],
|
|
||||||
sourceType: 'module',
|
sourceType: 'module',
|
||||||
projectService: true,
|
|
||||||
tsconfigRootDir: import.meta.dirname,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
@@ -55,10 +62,7 @@ export default tseslint.config(
|
|||||||
files: ['**/*.ts', '**/*.tsx'],
|
files: ['**/*.ts', '**/*.tsx'],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parser: tseslint.parser,
|
parser: tseslint.parser,
|
||||||
parserOptions: {
|
parserOptions: typedParserOptions,
|
||||||
projectService: true,
|
|
||||||
tsconfigRootDir: import.meta.dirname,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
+2
-2
@@ -5,8 +5,8 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"packageManager": "pnpm@11.21.0",
|
"packageManager": "pnpm@11.21.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "turbo lint",
|
"lint": "NODE_OPTIONS=--max-old-space-size=1024 turbo lint --concurrency=1",
|
||||||
"lint:fix": "turbo lint:fix",
|
"lint:fix": "NODE_OPTIONS=--max-old-space-size=1024 turbo lint:fix --concurrency=1",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"test": "turbo test --ui=stream --output-logs=errors-only",
|
"test": "turbo test --ui=stream --output-logs=errors-only",
|
||||||
"test-verbose": "SAMMO_TEST_REPORTER=verbose turbo test --ui=stream --output-logs=full",
|
"test-verbose": "SAMMO_TEST_REPORTER=verbose turbo test --ui=stream --output-logs=full",
|
||||||
|
|||||||
Reference in New Issue
Block a user