inflearn logo
강의

Khóa học

Chia sẻ kiến thức

TypeScript từ cơ bản đến thực chiến

Cài đặt và cấu hình plugin VSCode

vscode eslint server 오류

75

seop2

18 câu hỏi đã được viết

0

ESLint server is starting.
2025-10-31 16:07:45.117 [info] ESLint server running in node v22.19.0
2025-10-31 16:07:45.120 [info] ESLint server is running.
2025-10-31 16:07:46.021 [info] ESLint library loaded from: /Users/ijinseob/learn-typescript/node_modules/eslint/lib/api.js
2025-10-31 16:07:46.026 [error] An unexpected error occurred:
2025-10-31 16:07:46.026 [error] Error: Could not find config file.
    at assertConfigurationExists (/Users/ijinseob/learn-typescript/node_modules/eslint/lib/config/config-loader.js:80:17)
    at LegacyConfigLoader.loadConfigArrayForFile (/Users/ijinseob/learn-typescript/node_modules/eslint/lib/config/config-loader.js:414:3)
    at async ESLint.lintText (/Users/ijinseob/learn-typescript/node_modules/eslint/lib/eslint/eslint.js:1123:4)
    at async /Users/ijinseob/.vscode/extensions/dbaeumer.vscode-eslint-3.0.16/server/out/eslintServer.js:1:189380
    at async O (/Users/ijinseob/.vscode/extensions/dbaeumer.vscode-eslint-3.0.16/server/out/eslintServer.js:1:182146)
    at async /Users/ijinseob/.vscode/extensions/dbaeumer.vscode-eslint-3.0.16/server/out/eslintServer.js:1:29208
    at async /Users/ijinseob/.vscode/extensions/dbaeumer.vscode-eslint-3.0.16/server/out/eslintServer.js:1:11102
2025-10-31 16:07:55.052 [error] An unexpected error occurred:
2025-10-31 16:07:55.053 [error] Error: Could not find config file.
    at assertConfigurationExists (/Users/ijinseob/learn-typescript/node_modules/eslint/lib/config/config-loader.js:80:17)
    at LegacyConfigLoader.loadConfigArrayForFile (/Users/ijinseob/learn-typescript/node_modules/eslint/lib/config/config-loader.js:414:3)
    at async ESLint.lintText (/Users/ijinseob/learn-typescript/node_modules/eslint/lib/eslint/eslint.js:1123:4)
    at async /Users/ijinseob/.vscode/extensions/dbaeumer.vscode-eslint-3.0.16/server/out/eslintServer.js:1:189380
    at async O (/Users/ijinseob/.vscode/extensions/dbaeumer.vscode-eslint-3.0.16/server/out/eslintServer.js:1:182146)
    at async /Users/ijinseob/.vscode/extensions/dbaeumer.vscode-eslint-3.0.16/server/out/eslintServer.js:1:29208
    at async /Users/ijinseob/.vscode/extensions/dbaeumer.vscode-eslint-3.0.16/server/out/eslintServer.js:1:11102

extension 설치는 했는데 config 설정에서 계속 뭔가 안되네요ㅠ

javascript typescript es6

Câu trả lời 1

0

communityai8509

안녕하세요, 인프런 AI 인턴입니다. 이진섭님께서 겪고 계신 오류는 ESLint 설정 파일을 찾을 수 없다는 문제입니다. 이런 경우에는 일반적으로 프로젝트의 루트 디렉토리나 ESLint가 작동하는 곳에 .eslintrc 설정 파일이 누락되었거나, 잘못된 위치에 있을 때 발생할 수 있습니다.

ESLint 설정 파일을 제대로 생성하고 위치하는 방법에 대해 설명드리겠습니다:

  1. ESLint 설정 파일 생성:
    프로젝트 루트 디렉토리에 .eslintrc.js 파일을 생성합니다. (혹은 .eslintrc.json이나 .eslintrc로 설정 가능)

  2. 설정 파일 예시:

    module.exports = {
     "env": {
       "browser": true,
       "es2021": true
     },
     "extends": [
       "eslint:recommended",
       "plugin:@typescript-eslint/recommended"
     ],
     "parser": "@typescript-eslint/parser",
     "parserOptions": {
       "ecmaVersion": 12,
       "sourceType": "module"
     },
     "plugins": [
       "@typescript-eslint"
     ],
     "rules": {
       // Custom rules can be added here
     }
    };
    
  3. ESLint 설정 파일 경로 확인:

    • 설정 파일이 프로젝트의 루트 디렉토리에 있는지 확인하세요. 루트는 일반적으로 package.json 파일이 있는 곳입니다.
  4. VSCode ESLint Extension 설정 확인:

    • VSCode에서 확장 프로그램 설정을 열고 ESLint 플러그인이 정상적으로 작동 중인지, 그리고 ESLint Path 설정이 올바른지 확인합니다.

관련 질문으로는 다음과 같은 사례들이 있습니다:
- ESLint 가 제대로 적용되는건지 잘 모르겠습니다
- eslint 설치 후에 error가 많이 발생하네요ㅠㅠ

이 내용을 참고하시어 문제를 해결해 보세요.

저는 질문자님의 이해를 돕고자 지식공유자님의 기존 답변을 참고하여 유사한 답변 링크를 추천해드리고 있습니다.
현재 베타 기능으로 답변이 만족스럽지 않을 수 있는 점 양해 부탁드립니다. 🙏
추가적으로 궁금한 점이 있으시면, 이어서 질문해 주세요. 곧 지식공유자께서 답변해 주실 것입니다.

TSLint

0

66

1

안녕하세요. 기본타입- 튜플, 객체, 진위값 부분의 영상의 화면이 나오질 않습니다.

0

77

1

live server 설치 오류

1

371

2

강의 교안 pdf 는 따로 제공하지않나요?

0

284

2

npm i 설치 이유 문의

1

404

3

index.ts Delete `␍`eslintprettier/prettier 오류(빨간줄) 해결

2

289

3

vue 에서 jquery 사용 문제

1

692

2

TSLint 확장 프로그램은 현재 지원하지 않는다고 합니다.

1

499

2

강의 내용처럼 노란 밑줄이 작동하지 않아서 유사 질문들을 실행해보았는데요

1

542

1

section 3-1 JSdoc 타입이 추론되지 않아서 다음과 같이 수정했는데 이거 맞나요?

1

452

2

함수에 리턴 안됐다고 노란밑줄이 쳐져야하는데 없습니다

2

456

1

파일이 다른데 식별자가 중복되었다고 뜹니다.

1

443

2

빨간줄 에러 질문드립니다

1

489

2

마우스 갖다대면 리턴값 설명 나오는 거 질문드려요

1

356

2

js에서 @ts-check 적어도 체크하지 못하는 문제입니다

2

393

2

index.html에서 타입스크립트 콘솔 찍는 법 질문드립니다

1

566

2

섹션 1-3 추론 질문드립니다

1

354

2

왜 api쪽에는 왜 에러가 안나는지 궁금합니다.

1

323

2

const item1을 선언했을 때 타입을 선언해줘도 괜찮을까요?

1

391

1

전화번호부 타입선언

1

266

2

타입을 전역으로 분리

1

593

2

객체 선언 시 구분자는 쉼표, 세미콜론 모두 사용가능한건가요?

1

460

1

Git 관련 질문이 있습니다

1

670

2

js import export 관련 질문입니다!

1

357

2