-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop core-js in favour of custom fallbacks
Ref atlassian/react-beautiful-dnd#1629 (comment) I forbid using es6+ methods I added eslint-plugin-es6. It does not forbid isInteger but I send PR nkt/eslint-plugin-es5#37.
- Loading branch information
Showing
11 changed files
with
85 additions
and
51 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// @flow | ||
// https://allyjs.io/tutorials/hiding-elements.html | ||
// Element is visually hidden but is readable by screen readers | ||
const assignVisuallyHidden = (style: Object) => { | ||
style.position = 'absolute'; | ||
style.width = '1px'; | ||
style.height = '1px'; | ||
style.margin = '-1px'; | ||
style.border = '0'; | ||
style.padding = '0'; | ||
style.overflow = 'hidden'; | ||
style.clip = 'rect(0 0 0 0)'; | ||
style['clip-path'] = 'inset(100%)'; | ||
}; | ||
|
||
export default assignVisuallyHidden; |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -992,14 +992,6 @@ | |
"@babel/helper-plugin-utils" "^7.0.0" | ||
"@babel/plugin-transform-typescript" "^7.6.0" | ||
|
||
"@babel/runtime-corejs2@^7.6.3": | ||
version "7.6.3" | ||
resolved "https://registry.yarnpkg.com/@babel/runtime-corejs2/-/runtime-corejs2-7.6.3.tgz#de3f446b3fb688b98cbd220474d1a7cad909bcb8" | ||
integrity sha512-nuA2o+rgX2+PrNTZ063ehncVcg7sn+tU71BB81SaWRVUbGwCOlb0+yQA1e0QqmzOfRSYOxfvf8cosYqFbJEiwQ== | ||
dependencies: | ||
core-js "^2.6.5" | ||
regenerator-runtime "^0.13.2" | ||
|
||
"@babel/[email protected]": | ||
version "7.3.4" | ||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.3.4.tgz#73d12ba819e365fcf7fd152aed56d6df97d21c83" | ||
|
@@ -1021,6 +1013,13 @@ | |
dependencies: | ||
regenerator-runtime "^0.13.2" | ||
|
||
"@babel/runtime@^7.6.3": | ||
version "7.8.3" | ||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.3.tgz#0811944f73a6c926bb2ad35e918dcc1bfab279f1" | ||
integrity sha512-fVHx1rzEmwB130VTkLnxR+HmxcTjGzH12LYQcFFoBwakMd3aOMD4OsRN7tGG/UOYE2ektgFrS8uACAoRk1CY0w== | ||
dependencies: | ||
regenerator-runtime "^0.13.2" | ||
|
||
"@babel/template@^7.1.0", "@babel/template@^7.4.0", "@babel/template@^7.4.4", "@babel/template@^7.6.0": | ||
version "7.6.0" | ||
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.6.0.tgz#7f0159c7f5012230dad64cca42ec9bdb5c9536e6" | ||
|
@@ -4048,7 +4047,7 @@ core-js@^1.0.0: | |
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" | ||
integrity sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY= | ||
|
||
core-js@^2.4.0, core-js@^2.4.1, core-js@^2.6.5: | ||
core-js@^2.4.0, core-js@^2.4.1: | ||
version "2.6.9" | ||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2" | ||
integrity sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A== | ||
|
@@ -5063,6 +5062,11 @@ eslint-plugin-emotion@^10.0.14: | |
resolved "https://registry.yarnpkg.com/eslint-plugin-emotion/-/eslint-plugin-emotion-10.0.14.tgz#c643ff2f34f85ae77a65b2056915e939cf7e8129" | ||
integrity sha512-kI0hTPA5oo7MAc2YcdF1JcT36TZ1Ci0S5sbA9aojZ3leEPyCH34YBB76/8NQ3/9gybqrekIEuEhr8MP6JZf95Q== | ||
|
||
eslint-plugin-es5@^1.4.1: | ||
version "1.4.1" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-es5/-/eslint-plugin-es5-1.4.1.tgz#258fe89bc5f72fbd9f5f7936c840151766821f1e" | ||
integrity sha512-kktkmkF2O7pnSZYgrMiYMbt3wCKRIiXePwILv8USDG95YgP0PzhIxSIROLLKmiQQ/Z6LuhDGWTHK04gnbXBvkg== | ||
|
||
eslint-plugin-flowtype@^4.3.0: | ||
version "4.3.0" | ||
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-4.3.0.tgz#06d0837ac341caf369e7e6dbb112dd7fd21acf17" | ||
|