-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated dependencies * Run Prettier * Using react-dnd@6 * Updated install * Fixing tests * Using own version of react-dnd-scrollzone
- Loading branch information
1 parent
33f73db
commit 9343a55
Showing
19 changed files
with
4,097 additions
and
4,974 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
const env = process.env.NODE_ENV; | ||
|
||
if (env === 'rollup') { | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'env', | ||
{ | ||
modules: false, | ||
}, | ||
], | ||
'stage-2', | ||
'react', | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
modules: false, | ||
}, | ||
], | ||
plugins: ['external-helpers'], | ||
}; | ||
} | ||
|
||
if (env === 'test') { | ||
module.exports = { | ||
comments: false, | ||
plugins: ['transform-es2015-modules-commonjs'], | ||
presets: ['react', 'stage-2'], | ||
}; | ||
} | ||
'@babel/preset-react', | ||
], | ||
env: { | ||
test: { | ||
plugins: [ | ||
'@babel/plugin-transform-modules-commonjs', | ||
], | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = { | ||
extends: [ | ||
'eslint-config-airbnb', | ||
'prettier', | ||
'prettier/react' | ||
], | ||
parser: 'babel-eslint', | ||
env: { | ||
browser: true, | ||
jest: true | ||
}, | ||
rules: { | ||
'react/destructuring-assignment': 0, | ||
'react/jsx-filename-extension': 0, | ||
'react/prefer-stateless-function': 0, | ||
'react/no-did-mount-set-state': 0, | ||
'react/sort-comp': 0 | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ coverage | |
*.DS_Store | ||
|
||
# Build directories (Will be preserved by npm) | ||
.cache | ||
dist | ||
build | ||
style.css | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.