dev 환경에서 컴파일 시에 lint 메시지를 띄우려면 eslint-loader
가 있어야 한다.
yarn add -D eslint-loader
next.config.js
webpack: (config) => {
if (isDev) {
config.module.rules.push({
test: /\\.([jt])sx?$/,
exclude: /node_modules/,
loader: 'eslint-loader',
});
}
return config;
},