Skip to content

Commit

Permalink
@uppy/dashboard: refactor to ESM (#3701)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed May 18, 2022
1 parent 32d5887 commit 327509a
Show file tree
Hide file tree
Showing 34 changed files with 1,311 additions and 1,274 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.js
Expand Up @@ -201,6 +201,7 @@ module.exports = {
'packages/@uppy/aws-s3-multipart/src/**/*.js',
'packages/@uppy/box/src/**/*.js',
'packages/@uppy/compressor/src/**/*.js',
'packages/@uppy/dashboard/src/**/*.js',
'packages/@uppy/drag-drop/src/**/*.js',
'packages/@uppy/drop-target/src/**/*.js',
'packages/@uppy/dropbox/src/**/*.js',
Expand Down Expand Up @@ -269,6 +270,14 @@ module.exports = {
'import/extensions': ['error', 'ignorePackages'],
},
},
{
files: [
'packages/@uppy/dashboard/src/components/**/*.jsx',
],
rules: {
'react/destructuring-assignment': 'off',
},
},
{
files: [
// Those need looser rules, and cannot be made part of the stricter rules above.
Expand Down
2 changes: 2 additions & 0 deletions packages/@uppy/dashboard/package.json
Expand Up @@ -6,6 +6,7 @@
"main": "lib/index.js",
"style": "dist/style.min.css",
"types": "types/index.d.ts",
"type": "module",
"keywords": [
"file uploader",
"uppy",
Expand Down Expand Up @@ -36,6 +37,7 @@
"preact": "^10.5.13"
},
"devDependencies": {
"@jest/globals": "^27.4.2",
"@uppy/google-drive": "workspace:^",
"@uppy/status-bar": "workspace:^",
"resize-observer-polyfill": "^1.5.0"
Expand Down

0 comments on commit 327509a

Please sign in to comment.