Me gustaría deshabilitar tslint (a favor de usar eslint). Sin embargo, al deshabilitarlo en mi razzle.config.js
, aparece el siguiente error:
Cannot find "${PATH}/tslint.json" file. Please check webpack and ForkTsCheckerWebpackPlugin configuration.
Mi razzle.config.js
es el siguiente:
module.exports = {
plugins: [
{
name: "typescript",
useBabel: true,
useEslint: true,
forkTsChecker: {
tsconfig: "./tsconfig.json",
tslint: false,
watch: "./src",
typeCheck: true,
},
},
],
};
Mi mal - mi configuración fue formateada incorrectamente.
@Jayphen ¿Podría detallar una configuración de trabajo final aquí para que tslint ya no sea necesario como dep?
@ adaam2 Aquí está la parte relevante de mi configuración:
module.exports = {
plugins: [
{
name: "typescript",
options: {
useBabel: true,
useEslint: true,
forkTsChecker: {
tsconfig: "./tsconfig.json",
tslint: undefined,
watch: "./src",
typeCheck: true,
},
},
},
]
};
Tenga en cuenta que inicialmente me faltaba la clave options
.
@Jayphen gracias!
Comentario más útil
@ adaam2 Aquí está la parte relevante de mi configuración:
Tenga en cuenta que inicialmente me faltaba la clave
options
.