Kaynağa Gözat

[ui-ci] add eslint-plugin-jsx-a11y

add MPL-2.0 to licence list
Björn Alm 1 yıl önce
ebeveyn
işleme
b49a128fd1
4 değiştirilmiş dosya ile 661 ekleme ve 76 silme
  1. 2 2
      .eslintrc.js
  2. 657 74
      package-lock.json
  3. 1 0
      package.json
  4. 1 0
      tools/ci/check_for_js_licenses.js

+ 2 - 2
.eslintrc.js

@@ -158,9 +158,9 @@ module.exports = {
     },
     {
       files: ['*.ts', '*.tsx'],
-      extends: ['plugin:@typescript-eslint/recommended'],
+      extends: ['plugin:@typescript-eslint/recommended', 'plugin:jsx-a11y/recommended'],
       parser: '@typescript-eslint/parser',
-      plugins: ['jest', '@typescript-eslint'],
+      plugins: ['jest', '@typescript-eslint', 'jsx-a11y'],
       rules: jsTsVueRules
     }
   ],

Dosya farkı çok büyük olduğundan ihmal edildi
+ 657 - 74
package-lock.json


+ 1 - 0
package.json

@@ -125,6 +125,7 @@
     "eslint": "8.56.0",
     "eslint-config-prettier": "9.1.0",
     "eslint-plugin-jest": "28.6.0",
+    "eslint-plugin-jsx-a11y": "6.10.2",
     "eslint-plugin-prettier": "5.1.3",
     "eslint-plugin-vue": "9.27.0",
     "expose-loader": "3.0.0",

+ 1 - 0
tools/ci/check_for_js_licenses.js

@@ -44,6 +44,7 @@ checker.init(
           lowerLicenses.indexOf('cc') === -1 &&
           lowerLicenses.indexOf('python-2.0') === -1 &&
           lowerLicenses.indexOf('blueoak-1.0.0') === -1 &&
+          lowerLicenses.indexOf('mpl-2.0') === -1 && // Valid as long as we don't modify the source code
           // lz-string is marked as WTFPL license on NPM but the valid license is MIT from the github repo
           // https://github.com/pieroxy/lz-string/issues/147
           !packageName.startsWith('lz-string@') &&

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor