(eslint๋ฅผ ์ฌ์ฉํ๊ธฐ ์ํด) tslint๋ฅผ ๋นํ์ฑํํ๊ณ ์ถ์ต๋๋ค. ๊ทธ๋ฌ๋ razzle.config.js
์์ ๋นํ์ฑํํ๋ฉด ๋ค์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
Cannot find "${PATH}/tslint.json" file. Please check webpack and ForkTsCheckerWebpackPlugin configuration.
๋ด razzle.config.js
๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
module.exports = {
plugins: [
{
name: "typescript",
useBabel: true,
useEslint: true,
forkTsChecker: {
tsconfig: "./tsconfig.json",
tslint: false,
watch: "./src",
typeCheck: true,
},
},
],
};
๋ด ๋์ โ ๋ด ๊ตฌ์ฑ์ด ์๋ชป ํ์ํ๋์์ต๋๋ค.
@Jayphen tslint๊ฐ ๋ ์ด์ dep๋ก ํ์ํ์ง ์๋๋ก ์ต์ข ์์ ๊ตฌ์ฑ์ ์์ธํ ์ค๋ช ํ ์ ์์ต๋๊น?
@adaam2 ๋ค์์ ๋ด ๊ตฌ์ฑ์ ๊ด๋ จ ๋ถ๋ถ์ ๋๋ค.
module.exports = {
plugins: [
{
name: "typescript",
options: {
useBabel: true,
useEslint: true,
forkTsChecker: {
tsconfig: "./tsconfig.json",
tslint: undefined,
watch: "./src",
typeCheck: true,
},
},
},
]
};
์ฐธ๊ณ : ์ฒ์์๋ options
ํค๊ฐ ๋๋ฝ๋์์ต๋๋ค.
@์ ์ดํ ๊ฐ์ฌํฉ๋๋ค!
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@adaam2 ๋ค์์ ๋ด ๊ตฌ์ฑ์ ๊ด๋ จ ๋ถ๋ถ์ ๋๋ค.
์ฐธ๊ณ : ์ฒ์์๋
options
ํค๊ฐ ๋๋ฝ๋์์ต๋๋ค.