Browse Source

Merge pull request #388 from frozzare/issue-376

Remove "use strict" from source files
main
Brian Vaughn 7 years ago
committed by GitHub
parent
commit
942e83ef39
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/ButtonLink/ButtonLink.js
  2. 2
      src/components/ButtonLink/index.js
  3. 2
      src/components/CodeEditor/CodeEditor.js
  4. 2
      src/components/CodeEditor/index.js
  5. 2
      src/components/Container/Container.js
  6. 2
      src/components/Container/index.js
  7. 2
      src/components/ErrorDecoder/ErrorDecoder.js
  8. 2
      src/components/ErrorDecoder/index.js
  9. 2
      src/components/Flex/Flex.js
  10. 2
      src/components/Flex/index.js
  11. 2
      src/components/Header/Header.js
  12. 2
      src/components/Header/index.js
  13. 2
      src/components/LayoutFooter/ExternalFooterLink.js
  14. 2
      src/components/LayoutFooter/Footer.js
  15. 2
      src/components/LayoutFooter/FooterLink.js
  16. 2
      src/components/LayoutFooter/FooterNav.js
  17. 2
      src/components/LayoutFooter/index.js
  18. 2
      src/components/LayoutHeader/Header.js
  19. 2
      src/components/LayoutHeader/HeaderLink.js
  20. 2
      src/components/LayoutHeader/SearchSvg.js
  21. 2
      src/components/LayoutHeader/index.js
  22. 2
      src/components/MarkdownHeader/MarkdownHeader.js
  23. 2
      src/components/MarkdownHeader/index.js
  24. 2
      src/components/MarkdownPage/MarkdownPage.js
  25. 2
      src/components/MarkdownPage/index.js
  26. 2
      src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js
  27. 2
      src/components/StickyResponsiveSidebar/index.js
  28. 2
      src/components/TitleAndMetaTags/TitleAndMetaTags.js
  29. 2
      src/components/TitleAndMetaTags/index.js
  30. 2
      src/html.js
  31. 2
      src/layouts/index.js
  32. 2
      src/pages/404.js
  33. 2
      src/pages/acknowledgements.html.js
  34. 2
      src/pages/blog/all.html.js
  35. 2
      src/pages/docs/error-decoder.html.js
  36. 2
      src/pages/index.js
  37. 2
      src/pages/jsx-compiler.html.js
  38. 2
      src/prism-styles.js
  39. 2
      src/site-constants.js
  40. 2
      src/templates/blog.js
  41. 2
      src/templates/codepen-example.js
  42. 2
      src/templates/community.js
  43. 2
      src/templates/components/ChevronSvg/index.js
  44. 2
      src/templates/components/ExternalLinkSvg/index.js
  45. 2
      src/templates/components/MetaTitle/index.js
  46. 2
      src/templates/components/NavigationFooter/NavigationFooter.js
  47. 2
      src/templates/components/NavigationFooter/index.js
  48. 2
      src/templates/components/Sidebar/ScrollSyncSection.js
  49. 2
      src/templates/components/Sidebar/Section.js
  50. 2
      src/templates/components/Sidebar/Sidebar.js
  51. 2
      src/templates/components/Sidebar/index.js
  52. 2
      src/templates/docs.js
  53. 2
      src/templates/tutorial.js
  54. 2
      src/theme.js
  55. 2
      src/utils/createLink.js
  56. 2
      src/utils/createOgUrl.js
  57. 2
      src/utils/findSectionForPath.js
  58. 2
      src/utils/isItemActive.js
  59. 2
      src/utils/loadScript.js
  60. 2
      src/utils/mountCodeExample.js
  61. 2
      src/utils/sectionList.js
  62. 2
      src/utils/slugify.js
  63. 2
      src/utils/toCommaSeparatedList.js

2
src/components/ButtonLink/ButtonLink.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import Link from 'gatsby-link';
import React from 'react';
import {colors, media} from 'theme';

2
src/components/ButtonLink/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import ButtonLink from './ButtonLink';
export default ButtonLink;

2
src/components/CodeEditor/CodeEditor.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import Remarkable from 'remarkable';

2
src/components/CodeEditor/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import CodeEditor from './CodeEditor';
export default CodeEditor;

2
src/components/Container/Container.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import React from 'react';
import {media} from 'theme';

2
src/components/Container/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import Container from './Container';
export default Container;

2
src/components/ErrorDecoder/ErrorDecoder.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import React from 'react';
import type {Node} from 'react';

2
src/components/ErrorDecoder/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import ErrorDecoder from './ErrorDecoder';
export default ErrorDecoder;

2
src/components/Flex/Flex.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import {createElement} from 'glamor/react';
import type {Node} from 'react';

2
src/components/Flex/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import Flex from './Flex';
export default Flex;

2
src/components/Header/Header.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import React from 'react';
import {colors, fonts} from 'theme';

2
src/components/Header/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import Header from './Header';
export default Header;

2
src/components/LayoutFooter/ExternalFooterLink.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import React from 'react';
import {colors} from 'theme';
import ExternalLinkSvg from 'templates/components/ExternalLinkSvg';

2
src/components/LayoutFooter/Footer.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Container from 'components/Container';
import ExternalFooterLink from './ExternalFooterLink';
import FooterLink from './FooterLink';

2
src/components/LayoutFooter/FooterLink.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Link from 'gatsby-link';
import React from 'react';
import {colors} from 'theme';

2
src/components/LayoutFooter/FooterNav.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import React from 'react';
import {media} from 'theme';

2
src/components/LayoutFooter/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import Footer from './Footer';
export default Footer;

2
src/components/LayoutHeader/Header.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Container from 'components/Container';
import HeaderLink from './HeaderLink';
import Link from 'gatsby-link';

2
src/components/LayoutHeader/HeaderLink.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Link from 'gatsby-link';
import React from 'react';
import {colors, media} from 'theme';

2
src/components/LayoutHeader/SearchSvg.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import React from 'react';
const SearchSvg = () => (

2
src/components/LayoutHeader/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import Header from './Header';
export default Header;

2
src/components/MarkdownHeader/MarkdownHeader.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Flex from 'components/Flex';
import React from 'react';
import {colors, fonts, media} from 'theme';

2
src/components/MarkdownHeader/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import MarkdownHeader from './MarkdownHeader';
export default MarkdownHeader;

2
src/components/MarkdownPage/MarkdownPage.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Container from 'components/Container';
import Flex from 'components/Flex';
import MarkdownHeader from 'components/MarkdownHeader';

2
src/components/MarkdownPage/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import MarkdownPage from './MarkdownPage';
export default MarkdownPage;

2
src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Container from 'components/Container';
import React, {Component} from 'react';
import Sidebar from 'templates/components/Sidebar';

2
src/components/StickyResponsiveSidebar/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import StickyResponsiveSidebar from './StickyResponsiveSidebar';
export default StickyResponsiveSidebar;

2
src/components/TitleAndMetaTags/TitleAndMetaTags.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Helmet from 'react-helmet';
import React from 'react';

2
src/components/TitleAndMetaTags/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import TitleAndMetaTags from './TitleAndMetaTags';
export default TitleAndMetaTags;

2
src/html.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import React, {Component} from 'react';
let stylesStr;

2
src/layouts/index.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
// Polyfills for IE
import 'array-from';
import 'string.prototype.includes';

2
src/pages/404.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Container from 'components/Container';
import Header from 'components/Header';
import TitleAndMetaTags from 'components/TitleAndMetaTags';

2
src/pages/acknowledgements.html.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import Container from 'components/Container';
import Header from 'components/Header';
import TitleAndMetaTags from 'components/TitleAndMetaTags';

2
src/pages/blog/all.html.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Link from 'gatsby-link';
import Container from 'components/Container';
import Header from 'components/Header';

2
src/pages/docs/error-decoder.html.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Container from 'components/Container';
import ErrorDecoder from 'components/ErrorDecoder';
import Flex from 'components/Flex';

2
src/pages/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import ButtonLink from 'components/ButtonLink';
import Container from 'components/Container';
import Flex from 'components/Flex';

2
src/pages/jsx-compiler.html.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Container from 'components/Container';
import Header from 'components/Header';
import React from 'react';

2
src/prism-styles.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import {css} from 'glamor';
import {colors} from 'theme';

2
src/site-constants.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
// NOTE: We can't just use `location.toString()` because when we are rendering
// the SSR part in node.js we won't have a proper location.
const urlRoot = 'https://reactjs.org';

2
src/templates/blog.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import PropTypes from 'prop-types';
import React from 'react';
import MarkdownPage from 'components/MarkdownPage';

2
src/templates/codepen-example.js

@ -1,5 +1,3 @@
'use strict';
import React, {Component} from 'react';
import Container from 'components/Container';
import {colors} from 'theme';

2
src/templates/community.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import MarkdownPage from 'components/MarkdownPage';
import PropTypes from 'prop-types';
import React from 'react';

2
src/templates/components/ChevronSvg/index.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import React from 'react';
type Props = {

2
src/templates/components/ExternalLinkSvg/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import React from 'react';
const ExternalLinkSvg = ({cssProps = {}}: {cssProps: Object}) => (

2
src/templates/components/MetaTitle/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import React from 'react';
import {colors} from 'theme';

2
src/templates/components/NavigationFooter/NavigationFooter.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import Container from 'components/Container';
import Flex from 'components/Flex';
import Link from 'gatsby-link';

2
src/templates/components/NavigationFooter/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import NavigationFooter from './NavigationFooter';
export default NavigationFooter;

2
src/templates/components/Sidebar/ScrollSyncSection.js

@ -7,8 +7,6 @@
* @emails react-core
*/
'use strict';
import React, {Component} from 'react';
import Section from './Section';

2
src/templates/components/Sidebar/Section.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import React from 'react';
import {colors, media} from 'theme';
import isItemActive from 'utils/isItemActive';

2
src/templates/components/Sidebar/Sidebar.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import React, {Component} from 'react';
import Flex from 'components/Flex';
import Section from './Section';

2
src/templates/components/Sidebar/index.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import Sidebar from './Sidebar';
export default Sidebar;

2
src/templates/docs.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import MarkdownPage from 'components/MarkdownPage';
import PropTypes from 'prop-types';
import React from 'react';

2
src/templates/tutorial.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import MarkdownPage from 'components/MarkdownPage';
import PropTypes from 'prop-types';
import React from 'react';

2
src/theme.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
/**
* Theme contains variables shared by styles of multiple components.
*/

2
src/utils/createLink.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import Link from 'gatsby-link';
import React from 'react';
import ExternalLinkSvg from 'templates/components/ExternalLinkSvg';

2
src/utils/createOgUrl.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import {urlRoot} from 'site-constants';
export default (slug: string): string | null =>

2
src/utils/findSectionForPath.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import slugify from './slugify';
/**

2
src/utils/isItemActive.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import slugify from 'utils/slugify';
const toAnchor = (href: string = ''): string => {

2
src/utils/loadScript.js

@ -7,8 +7,6 @@
* @emails react-core
*/
'use strict';
export default url =>
new Promise((resolve, reject) =>
document.head.appendChild(

2
src/utils/mountCodeExample.js

@ -4,8 +4,6 @@
* @emails react-core
*/
'use strict';
import CodeEditor from '../components/CodeEditor';
import React from 'react';
import ReactDOM from 'react-dom';

2
src/utils/sectionList.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
// $FlowExpectedError
import navCommunity from '../../content/community/nav.yml';
// $FlowExpectedError

2
src/utils/slugify.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import slugify from 'slugify';
export default (string: string, directory?: string): string => {

2
src/utils/toCommaSeparatedList.js

@ -5,8 +5,6 @@
* @flow
*/
'use strict';
import React from 'react';
import type {Node} from 'react';

Loading…
Cancel
Save