Razzle: هل تريد تعطيل tslint باستخدام المكون الإضافي Typescript؟

تم إنشاؤها على ٢٤ فبراير ٢٠١٩  ·  4تعليقات  ·  مصدر: jaredpalmer/razzle

أود تعطيل 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,
      },
    },
  ],
};

التعليق الأكثر فائدة

@ adaam2 هنا الجزء ذو الصلة من التكوين الخاص بي:

module.exports = {
  plugins: [
    {
      name: "typescript",
      options: {
        useBabel: true,
        useEslint: true,
        forkTsChecker: {
          tsconfig: "./tsconfig.json",
          tslint: undefined,
          watch: "./src",
          typeCheck: true,
        },
      },
    },
  ]
};

ملاحظة كنت أفتقد المفتاح options البداية.

ال 4 كومينتر

سيئ - تم تنسيق التكوين الخاص بي بشكل غير صحيح.

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 شكرا!

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات

القضايا ذات الصلة

mhuggins picture mhuggins  ·  3تعليقات

alexjoyner picture alexjoyner  ·  3تعليقات

panbanda picture panbanda  ·  5تعليقات

krazyjakee picture krazyjakee  ·  3تعليقات

kkarkos picture kkarkos  ·  3تعليقات