Преглед изворни кода

meta: resolve warnings in `.d.ts` files (#3754)

Antoine du Hamel пре 2 година
родитељ
комит
dbd271e714
2 измењених фајлова са 10 додато и 1 уклоњено
  1. 10 0
      .eslintrc.js
  2. 0 1
      packages/@uppy/core/types/index.d.ts

+ 10 - 0
.eslintrc.js

@@ -271,6 +271,16 @@ module.exports = {
         'import/extensions': ['error', 'ignorePackages'],
       },
     },
+    {
+      files: [
+        'packages/@uppy/*/types/*.d.ts',
+      ],
+      rules : {
+        'import/no-unresolved': 'off',
+        'max-classes-per-file': 'off',
+        'no-use-before-define': 'off',
+      },
+    },
     {
       files: [
         'packages/@uppy/dashboard/src/components/**/*.jsx',

+ 0 - 1
packages/@uppy/core/types/index.d.ts

@@ -1,4 +1,3 @@
-/* eslint-disable max-classes-per-file */
 import * as UppyUtils from '@uppy/utils'
 
 // Utility types