Travis يفشل بسبب eslint

لديك إضافتان تفشلان في اختبارات Travis. يبدو أنه لا توجد ملفات ES6 فيهما، ويشعر eslint بأنه مُهمَل؟

تشغيل أدوات التفتيش/التنسيق
eslint yarn run v1.22.5
$ /var/www/discourse/node_modules/.bin/eslint -v
v6.8.0
تم الإنجاز في 0.32 ثانية.
prettier yarn run v1.22.5
$ /var/www/discourse/node_modules/.bin/prettier -v
2.1.1
تم الإنجاز في 0.28 ثانية.
[2020-09-07 01:34:21] bundle exec rubocop --parallel plugins/discourse-allow-pm-to-staff
فحص ملفين
..
تم فحص ملفين، ولم يتم اكتشاف أي مخالفات
[2020-09-07 01:34:22] bundle exec ruby script/i18n_lint.rb plugins/discourse-allow-pm-to-staff/config/locales/{client,server}.en.yml
[2020-09-07 01:34:23] yarn eslint --global I18n --ext .es6 plugins/discourse-allow-pm-to-staff
yarn run v1.22.5
$ /var/www/discourse/node_modules/.bin/eslint --global I18n --ext .es6 plugins/discourse-allow-pm-to-staff
عفوًا! حدث خطأ ما :(
ESLint: 6.8.0.
لم يتم العثور على أي ملفات تطابق النمط "plugins/discourse-allow-pm-to-staff".
يرجى التحقق من وجود أخطاء إملائية في النمط.
فشل الأمر مع رمز خروج 2.
للمزيد من المعلومات، قم بزيارة https://yarnpkg.com/en/docs/cli/run
قائمة مخالفات prettier في discourse-allow-pm-to-staff:

نعم، لا يحب eslint أن يكون بلا عمل. هذا يجعله يشعر بأنه أكثر فائدة.

mkdir -p assets/javascripts/discourse
touch assets/javascripts/discourse/eslint.js.es6
git add assets/javascripts/discourse/eslint.js.es6
git commit -m 'try to make eslint not feel left out'
git push

لكن أعتقد أن هذا هو الحل الحقيقي:

https://github.com/discourse/discourse/compare/master...pfaffman:patch-5

آه، لكن كيف ستقوم بالترويج لذلك دون أن يشكو eslint؟ :wink:

أنا أفهم القليل جدًا مما يحدث هنا لدرجة أنني كدت ألا أفهم نكتتك!

نعم، لقد دفعت هذا الإصلاح لـ GitHub Actions في الأيام القليلة الماضية:

إذًا، بشكل أساسي، لا يحب eslint الجديد عندما لا يتطابق مع أي شيء. كما استغلت الفرصة لتبسيط الأوامر، وسأطبق نفس الشيء على مهمة rake الخاصة بنا، لا تقلق.

هذا يجب أن يحل المشكلة:

أخبرني كيف سارت الأمور :+1:

تم فحص ملفين، ولم يتم اكتشاف أي مخالفات
[2020-09-10 18:43:13] bundle exec ruby script/i18n_lint.rb plugins/discourse-topic-default-tag/config/locales/{client,server}.en.yml
[2020-09-10 18:43:13] yarn eslint --global I18n --ext .es6 plugins/discourse-topic-default-tag
yarn run v1.22.5
$ /var/www/discourse/node_modules/.bin/eslint --global I18n --ext .es6 plugins/discourse-topic-default-tag
عفوًا! حدث خطأ ما :(.
ESLint: 6.8.0.
لم يتم العثور على أي ملفات تطابق النمط "plugins/discourse-topic-default-tag".
يرجى التحقق من وجود أخطاء إملائية في النمط.
فشل الأمر مع رمز الخروج 2.
معلومات: قم بزيارة https://yarnpkg.com/en/docs/cli/run للحصول على وثائق حول هذا الأمر.
قائمة مخالفات prettier في discourse-topic-default-tag:

عفوًا، الخطأ مني.

أوه، نعم، إنه يستخدم مكونات discourse-plugin-ci، وإذا قرأت الكود ستلاحظ:

والتعديل الخاص بي لم يظهر بعد في tests-passed