์๋ ํ์ธ์,
tslint ๋ฒ์ 2.5.1์ด ์ค์น๋ Windows 10์์ ์คํ ์ค์ด๋ฉฐ ํ์ผ์ ๋ฆฐํธํ๋ ค๊ณ ํ๋ฉด ๋ค์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
undefined:1
?{
^
SyntaxError: Unexpected token ?
at Object.parse (native)
at Object.findConfiguration (C:\...\node_modules\tslint\bin\tslint-cli.js:50424:29)
at processFile (C:\...\recorder\node_modules\tslint\bin\tslint-cli.js:50885:48)
at Lint (C:\...\node_modules\tslint\bin\tslint-cli.js:50906:9)
at Object.<anonymous> (C:\...\node_modules\tslint\bin\tslint-cli.js:50908:3)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
์ด๋ค ์๊ฐ์ด ์ด๊ฒ์ ์ผ์ผํฌ ์ ์์ต๋๊น?
tslint.json
๊ตฌ๋ฌธ ๋ถ์ ์ JSON ๊ตฌ๋ฌธ ์ค๋ฅ์ผ ์ ์์ต๋๋ค.
์ ์ก์์ต๋๋ค. ์์์ผ์ ํ์ธํ๊ฒ ์ต๋๋ค.
@adidahiya UTF-8 ์ธ์ฝ๋ฉ์ ์ฌ์ฉํ์ฌ ์ด ๋ฆฌํฌ์งํ ๋ฆฌ ์์ ์์ ํ์ผ์ ์ ์ฅํ๋๋ฐ ์ธ๊ธ๋ ์ค๋ฅ์ ํจ๊ป tslint๊ฐ ์คํจํ์ต๋๋ค. ISO-8859-1๊ณผ ๊ฐ์ ๋ค๋ฅธ ์ธ์ฝ๋ฉ์ผ๋ก ์ ์ฅํ๋ฉด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค.
ํํธ ๊ฐ์ฌํฉ๋๋ค
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@adidahiya UTF-8 ์ธ์ฝ๋ฉ์ ์ฌ์ฉํ์ฌ ์ด ๋ฆฌํฌ์งํ ๋ฆฌ ์์ ์์ ํ์ผ์ ์ ์ฅํ๋๋ฐ ์ธ๊ธ๋ ์ค๋ฅ์ ํจ๊ป tslint๊ฐ ์คํจํ์ต๋๋ค. ISO-8859-1๊ณผ ๊ฐ์ ๋ค๋ฅธ ์ธ์ฝ๋ฉ์ผ๋ก ์ ์ฅํ๋ฉด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค.
ํํธ ๊ฐ์ฌํฉ๋๋ค