Tslint: ์˜ˆ์ƒ์น˜ ๋ชปํ•œ ํ† ํฐ?

์— ๋งŒ๋“  2015๋…„ 11์›” 06์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: palantir/tslint

์•ˆ๋…•ํ•˜์„ธ์š”,

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)

์–ด๋–ค ์ƒ๊ฐ์ด ์ด๊ฒƒ์„ ์ผ์œผํ‚ฌ ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

Question

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

@adidahiya UTF-8 ์ธ์ฝ”๋”ฉ์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์—์„œ ์˜ˆ์ œ ํŒŒ์ผ์„ ์ €์žฅํ–ˆ๋Š”๋ฐ ์–ธ๊ธ‰๋œ ์˜ค๋ฅ˜์™€ ํ•จ๊ป˜ tslint๊ฐ€ ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค. ISO-8859-1๊ณผ ๊ฐ™์€ ๋‹ค๋ฅธ ์ธ์ฝ”๋”ฉ์œผ๋กœ ์ €์žฅํ•˜๋ฉด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ํžŒํŠธ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค

๋ชจ๋“  3 ๋Œ“๊ธ€

tslint.json ๊ตฌ๋ฌธ ๋ถ„์„ ์‹œ JSON ๊ตฌ๋ฌธ ์˜ค๋ฅ˜์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ž˜ ์žก์•˜์Šต๋‹ˆ๋‹ค. ์›”์š”์ผ์— ํ™•์ธํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

@adidahiya UTF-8 ์ธ์ฝ”๋”ฉ์„ ์‚ฌ์šฉํ•˜์—ฌ ์ด ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์—์„œ ์˜ˆ์ œ ํŒŒ์ผ์„ ์ €์žฅํ–ˆ๋Š”๋ฐ ์–ธ๊ธ‰๋œ ์˜ค๋ฅ˜์™€ ํ•จ๊ป˜ tslint๊ฐ€ ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค. ISO-8859-1๊ณผ ๊ฐ™์€ ๋‹ค๋ฅธ ์ธ์ฝ”๋”ฉ์œผ๋กœ ์ €์žฅํ•˜๋ฉด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ํžŒํŠธ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰