Typescript project with eslint@8


νƒ€μž…μŠ€ν¬λ¦½νŠΈλ₯Ό μ‚¬μš©ν•˜λŠ” ν”„λ‘œμ νŠΈμ— 린트λ₯Ό κ΅¬μ„±ν•΄μ„œ μ‚¬μš©ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

eslint νŒ¨ν‚€μ§€λ₯Ό μ—…λ°μ΄νŠΈ(v8.x) ν•˜κ³  λ‚˜λ‹ˆ, 린트 μ‹€ν–‰μ‹œ 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.

였λ₯˜ λ©”μ‹œμ§€λŠ” μ•„λž˜μ™€ κ°™μŠ΅λ‹ˆλ‹€.

Oops! Something went wrong! :(

ESLint: 8.14.0

TypeError: Failed to load plugin '@typescript-eslint' declared in '.eslintrc': Class extends value undefined is not a constructor or null

ν•΄κ²° 방법

λ™μΌν•œ λ¬Έμ œμ— λŒ€ν•œ κΉƒν—ˆλΈŒ μ΄μŠˆκ°€ μžˆμŠ΅λ‹ˆλ‹€.

μ•„λž˜ 두 νŒ¨ν‚€μ§€κ°€ eslint@7 을 λŒ€μƒμœΌλ‘œ ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

λ‹€ν–‰νžˆ 두 νŒ¨ν‚€μ§€ λͺ¨λ‘ eslint@8을 λŒ€μƒμœΌλ‘œν•œ μ—…λ°μ΄νŠΈκ°€ μžˆμŠ΅λ‹ˆλ‹€.

$ npm i @typescript-eslint/parser@5 @typescript-eslint/eslint-plugin@5

두 νŒ¨ν‚€μ§€λ₯Ό μ—…λ°μ΄νŠΈ(v5)ν•œ ν›„ λ¦°νŠΈκ°€ μ •μƒμ μœΌλ‘œ λ™μž‘ν•©λ‹ˆλ‹€.

κ΄€λ ¨ 링크

GitHub Repository

Profile picture

Pon Cheol Ku (ꡬ본철)

Software developer

Other sites

If does not find interesting topic, you might visit other site on below link.

Β© 2024, Built with Gatsby