أقوم بتشغيل tslint -p .
بالدير مع tsconfig.json
الذي يحتوي على "strict": true
، لكني أحصل على هذا:
strict-type-predicates does not work without --strictNullChecks
أرى في # 2786 أنه يجب التحقق من ذلك. هل فاتني شيء؟
على سبيل المثال ، استنساخ https://github.com/cretz/awss/tree/05eb0c7adb22fb4feab92c1f190a752f8cfec921 ، cd إلى proj
، وقم بتشغيل npm run lint
strict
هو compilerOption
، إنه غير صحيح في المستوى الأعلى من tsconfig.json الخاص بك. يجب أن تبدو هذه:
{
"compilerOptions": {
"strict": true
}
}
خطأي شكرا!
التعليق الأكثر فائدة
strict
هوcompilerOption
، إنه غير صحيح في المستوى الأعلى من tsconfig.json الخاص بك. يجب أن تبدو هذه: