أود تعطيل tslint (لصالح استخدام eslint). ومع ذلك ، عند تعطيله في 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 مطلوبًا باعتباره قسمًا؟
@ adaam2 هنا الجزء ذو الصلة من التكوين الخاص بي:
module.exports = {
plugins: [
{
name: "typescript",
options: {
useBabel: true,
useEslint: true,
forkTsChecker: {
tsconfig: "./tsconfig.json",
tslint: undefined,
watch: "./src",
typeCheck: true,
},
},
},
]
};
ملاحظة كنت أفتقد المفتاح options
البداية.
Jayphen شكرا!
التعليق الأكثر فائدة
@ adaam2 هنا الجزء ذو الصلة من التكوين الخاص بي:
ملاحظة كنت أفتقد المفتاح
options
البداية.