mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
* relocate .vscode
* Switch to transloadit linter
* Update .eslintrc.json
* autofix code
* unlink and install eslint-config-transloadit@1.1.1
* Change 0 to "off"
* Don't change 'use strict'
* Do not vertically align
* disable key-spacing
* add import/no-extraneous-dependencies per package
* add more react/a11y warnings
* Revert "autofix code"
This reverts commit 14c8a8cde8.
* add import/no-extraneous-dependencies per example and main package
* autofix code (2)
* Allow devDependencies in ./bin
* Change import/no-extraneous-dependencies to warn again
* upgrade linter
* Set import/no-extraneous-dependencies to warn
22 lines
538 B
JavaScript
22 lines
538 B
JavaScript
module.exports = (api) => {
|
|
const targets = {}
|
|
if (api.env('test')) {
|
|
targets.node = 'current'
|
|
}
|
|
|
|
return {
|
|
presets: [
|
|
['@babel/preset-env', {
|
|
modules: false,
|
|
loose: true,
|
|
targets,
|
|
}],
|
|
],
|
|
plugins: [
|
|
['@babel/plugin-proposal-class-properties', { loose: true }],
|
|
'@babel/plugin-transform-object-assign',
|
|
['@babel/plugin-transform-react-jsx', { pragma: 'h' }],
|
|
process.env.IS_RELEASE_BUILD && 'babel-plugin-inline-package-json',
|
|
].filter(Boolean),
|
|
}
|
|
}
|