From 7cf0303849cc4b396d47650ed59bf6c31b01cc76 Mon Sep 17 00:00:00 2001 From: hupe1980 Date: Tue, 21 Jul 2020 12:07:44 +0200 Subject: [PATCH] chore: Add linter --- .eslintrc.js | 23 +++--- .prettierrc.js | 2 +- README.md | 1 + examples/simple/src/components/pro-tip.js | 6 +- .../theme.js | 2 +- examples/simple/src/pages/about.js | 8 +- examples/simple/src/pages/index.js | 8 +- .../typescript/src/components/pro-tip.tsx | 10 +-- .../theme.tsx | 4 +- examples/typescript/src/pages/about.tsx | 8 +- examples/typescript/src/pages/index.tsx | 8 +- .../using-redux/src/components/counter.js | 6 +- .../using-redux/src/components/pro-tip.js | 6 +- .../components/top-layout.js | 8 +- .../theme.js | 2 +- examples/using-redux/src/pages/about.js | 8 +- examples/using-redux/src/pages/index.js | 10 +-- examples/using-redux/src/state/createStore.js | 2 +- package.json | 10 ++- .../package.json | 7 ++ .../src/button.tsx | 4 +- .../src/card-action-area.tsx | 2 +- .../gatsby-material-ui-components/src/fab.tsx | 4 +- .../src/glink.tsx | 17 +++-- .../src/icon-button.tsx | 8 +- .../src/index.tsx | 14 ++-- .../src/link.tsx | 6 +- .../src/patch-base-button-components.tsx | 11 ++- .../gatsby-theme-material-ui-layout/README.md | 2 +- .../components.js | 2 +- .../gatsby-browser.js | 4 +- .../gatsby-ssr.js | 2 +- .../src/components/index.js | 6 +- .../src/components/nprogress-bar.js | 26 +++---- .../src/components/skip-nav.js | 8 +- .../src/components/title/index.js | 2 +- .../src/components/title/title.js | 10 +-- .../src/hooks/use-site-metadata.js | 2 +- .../src/layout/content.js | 2 +- .../src/layout/footer.js | 14 ++-- .../src/layout/index.js | 2 +- .../src/layout/layout.js | 12 +-- .../src/wrap-with-layout.js | 4 +- .../README.md | 2 + .../gatsby-browser.js | 2 +- .../gatsby-ssr.js | 2 +- .../src/components/top-layout.js | 8 +- .../src/components/viewport.js | 4 +- .../src/theme.js | 2 +- .../src/wrap-with-provider.js | 6 +- packages/gatsby-theme-material-ui/index.d.ts | 2 +- packages/gatsby-theme-material-ui/index.js | 2 +- packages/material-ui-mdx/src/CodeBlock.js | 6 +- packages/material-ui-mdx/src/index.js | 14 ++-- www/src/components/header/app-bar.js | 20 ++--- www/src/components/header/header.js | 10 +-- www/src/components/header/index.js | 2 +- www/src/components/header/left-links.js | 6 +- www/src/components/header/right-links.js | 10 +-- .../layout/header.js | 2 +- www/src/gatsby-theme-material-ui/theme.js | 2 +- www/src/gatsby-theme-netlify-cms/config.js | 2 +- www/src/pages/404.js | 2 +- www/src/pages/index.js | 2 +- www/src/svg-icons/github-icon.js | 4 +- www/src/svg-icons/twitter-icon.js | 4 +- yarn.lock | 73 +++++++++++++++++++ 67 files changed, 296 insertions(+), 196 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index b2e0fea..ecac3b6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,18 +1,17 @@ module.exports = { - parser: 'babel-eslint', - extends: ['react-app', 'prettier'], - plugins: ['prettier'], - rules: { - 'prettier/prettier': 'error', - quotes: ['error', 'backtick'] - }, + extends: [ + `react-app`, + `prettier/@typescript-eslint`, + `plugin:prettier/recommended`, + ], + plugins: [`prettier`], overrides: [ { - files: ['**/cypress/integration/**/*', '**/cypress/support/**/*'], + files: [`**/cypress/integration/**/*`, `**/cypress/support/**/*`], globals: { cy: false, - Cypress: false - } - } - ] + Cypress: false, + }, + }, + ], }; diff --git a/.prettierrc.js b/.prettierrc.js index 7e5c49d..a7695fd 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,6 +1,6 @@ module.exports = { semi: true, - singleQuote: false, + singleQuote: true, tabWidth: 2, trailingComma: 'all' }; diff --git a/README.md b/README.md index cdedfc5..71c4857 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ This repository is a monorepo managed with [Lerna](https://github.com/lerna/lern | Theme | Description | | -------------------------------------------------------------- | -------------------------------------------- | | [gatsby-theme-material-ui](/packages/gatsby-theme-material-ui) | Core Theme to support the use of Material-UI | +| [gatsby-material-ui-components](/packages/gatsby-material-ui-components) | Material-UI components for Gatsby | ## Running the examples locally diff --git a/examples/simple/src/components/pro-tip.js b/examples/simple/src/components/pro-tip.js index 0db249a..a9b2879 100644 --- a/examples/simple/src/components/pro-tip.js +++ b/examples/simple/src/components/pro-tip.js @@ -1,6 +1,6 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import { makeStyles, SvgIcon, Typography } from "@material-ui/core"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import { makeStyles, SvgIcon, Typography } from '@material-ui/core'; function LightBulbIcon(props) { return ( diff --git a/examples/simple/src/gatsby-theme-material-ui-top-layout/theme.js b/examples/simple/src/gatsby-theme-material-ui-top-layout/theme.js index e67abe2..99f3105 100644 --- a/examples/simple/src/gatsby-theme-material-ui-top-layout/theme.js +++ b/examples/simple/src/gatsby-theme-material-ui-top-layout/theme.js @@ -1,4 +1,4 @@ -import { createMuiTheme, colors } from "@material-ui/core"; +import { createMuiTheme, colors } from '@material-ui/core'; // A custom theme for this app const theme = createMuiTheme({ diff --git a/examples/simple/src/pages/about.js b/examples/simple/src/pages/about.js index be41faa..227a50e 100644 --- a/examples/simple/src/pages/about.js +++ b/examples/simple/src/pages/about.js @@ -1,8 +1,8 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import { Container, Box, Typography } from "@material-ui/core"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import { Container, Box, Typography } from '@material-ui/core'; -import ProTip from "../components/pro-tip"; +import ProTip from '../components/pro-tip'; function MadeWithLove() { return ( diff --git a/examples/simple/src/pages/index.js b/examples/simple/src/pages/index.js index 3f2160a..59f0a5d 100644 --- a/examples/simple/src/pages/index.js +++ b/examples/simple/src/pages/index.js @@ -1,8 +1,8 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import { Container, Box, Typography } from "@material-ui/core"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import { Container, Box, Typography } from '@material-ui/core'; -import ProTip from "../components/pro-tip"; +import ProTip from '../components/pro-tip'; function MadeWithLove() { return ( diff --git a/examples/typescript/src/components/pro-tip.tsx b/examples/typescript/src/components/pro-tip.tsx index 1472806..2dddbe8 100644 --- a/examples/typescript/src/components/pro-tip.tsx +++ b/examples/typescript/src/components/pro-tip.tsx @@ -1,8 +1,8 @@ -import React from "react"; -import { createStyles, makeStyles, Theme } from "@material-ui/core/styles"; -import SvgIcon, { SvgIconProps } from "@material-ui/core/SvgIcon"; -import Typography from "@material-ui/core/Typography"; -import { Link } from "gatsby-theme-material-ui"; +import React from 'react'; +import { createStyles, makeStyles, Theme } from '@material-ui/core/styles'; +import SvgIcon, { SvgIconProps } from '@material-ui/core/SvgIcon'; +import Typography from '@material-ui/core/Typography'; +import { Link } from 'gatsby-theme-material-ui'; function LightBulbIcon(props: SvgIconProps) { return ( diff --git a/examples/typescript/src/gatsby-theme-material-ui-top-layout/theme.tsx b/examples/typescript/src/gatsby-theme-material-ui-top-layout/theme.tsx index 085df5f..82ce06a 100644 --- a/examples/typescript/src/gatsby-theme-material-ui-top-layout/theme.tsx +++ b/examples/typescript/src/gatsby-theme-material-ui-top-layout/theme.tsx @@ -1,5 +1,5 @@ -import red from "@material-ui/core/colors/red"; -import { createMuiTheme } from "@material-ui/core"; +import red from '@material-ui/core/colors/red'; +import { createMuiTheme } from '@material-ui/core'; // A custom theme for this app const theme = createMuiTheme({ diff --git a/examples/typescript/src/pages/about.tsx b/examples/typescript/src/pages/about.tsx index be41faa..227a50e 100644 --- a/examples/typescript/src/pages/about.tsx +++ b/examples/typescript/src/pages/about.tsx @@ -1,8 +1,8 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import { Container, Box, Typography } from "@material-ui/core"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import { Container, Box, Typography } from '@material-ui/core'; -import ProTip from "../components/pro-tip"; +import ProTip from '../components/pro-tip'; function MadeWithLove() { return ( diff --git a/examples/typescript/src/pages/index.tsx b/examples/typescript/src/pages/index.tsx index 3f2160a..59f0a5d 100644 --- a/examples/typescript/src/pages/index.tsx +++ b/examples/typescript/src/pages/index.tsx @@ -1,8 +1,8 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import { Container, Box, Typography } from "@material-ui/core"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import { Container, Box, Typography } from '@material-ui/core'; -import ProTip from "../components/pro-tip"; +import ProTip from '../components/pro-tip'; function MadeWithLove() { return ( diff --git a/examples/using-redux/src/components/counter.js b/examples/using-redux/src/components/counter.js index 13b6d06..12521b9 100644 --- a/examples/using-redux/src/components/counter.js +++ b/examples/using-redux/src/components/counter.js @@ -1,6 +1,6 @@ -import React from "react"; -import { connect } from "react-redux"; -import { Box, Button, Typography } from "@material-ui/core"; +import React from 'react'; +import { connect } from 'react-redux'; +import { Box, Button, Typography } from '@material-ui/core'; function Counter({ count, increment }) { return ( diff --git a/examples/using-redux/src/components/pro-tip.js b/examples/using-redux/src/components/pro-tip.js index 0db249a..a9b2879 100644 --- a/examples/using-redux/src/components/pro-tip.js +++ b/examples/using-redux/src/components/pro-tip.js @@ -1,6 +1,6 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import { makeStyles, SvgIcon, Typography } from "@material-ui/core"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import { makeStyles, SvgIcon, Typography } from '@material-ui/core'; function LightBulbIcon(props) { return ( diff --git a/examples/using-redux/src/gatsby-theme-material-ui-top-layout/components/top-layout.js b/examples/using-redux/src/gatsby-theme-material-ui-top-layout/components/top-layout.js index 40b03cb..8af342d 100644 --- a/examples/using-redux/src/gatsby-theme-material-ui-top-layout/components/top-layout.js +++ b/examples/using-redux/src/gatsby-theme-material-ui-top-layout/components/top-layout.js @@ -1,8 +1,8 @@ -import React from "react"; -import { Provider } from "react-redux"; -import ThemeTopLayout from "gatsby-theme-material-ui-top-layout/src/components/top-layout"; +import React from 'react'; +import { Provider } from 'react-redux'; +import ThemeTopLayout from 'gatsby-theme-material-ui-top-layout/src/components/top-layout'; -import createStore from "../../state/createStore"; +import createStore from '../../state/createStore'; export default function TopLayout({ children, theme }) { const store = createStore(); diff --git a/examples/using-redux/src/gatsby-theme-material-ui-top-layout/theme.js b/examples/using-redux/src/gatsby-theme-material-ui-top-layout/theme.js index e67abe2..99f3105 100644 --- a/examples/using-redux/src/gatsby-theme-material-ui-top-layout/theme.js +++ b/examples/using-redux/src/gatsby-theme-material-ui-top-layout/theme.js @@ -1,4 +1,4 @@ -import { createMuiTheme, colors } from "@material-ui/core"; +import { createMuiTheme, colors } from '@material-ui/core'; // A custom theme for this app const theme = createMuiTheme({ diff --git a/examples/using-redux/src/pages/about.js b/examples/using-redux/src/pages/about.js index cee5444..19f7a10 100644 --- a/examples/using-redux/src/pages/about.js +++ b/examples/using-redux/src/pages/about.js @@ -1,8 +1,8 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import { Box, Container, Typography } from "@material-ui/core"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import { Box, Container, Typography } from '@material-ui/core'; -import ProTip from "../components/pro-tip"; +import ProTip from '../components/pro-tip'; function MadeWithLove() { return ( diff --git a/examples/using-redux/src/pages/index.js b/examples/using-redux/src/pages/index.js index 34c811e..b0baab3 100644 --- a/examples/using-redux/src/pages/index.js +++ b/examples/using-redux/src/pages/index.js @@ -1,9 +1,9 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import { Box, Container, Typography } from "@material-ui/core"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import { Box, Container, Typography } from '@material-ui/core'; -import ProTip from "../components/pro-tip"; -import Counter from "../components/counter"; +import ProTip from '../components/pro-tip'; +import Counter from '../components/counter'; function MadeWithLove() { return ( diff --git a/examples/using-redux/src/state/createStore.js b/examples/using-redux/src/state/createStore.js index 2760193..dc4896e 100644 --- a/examples/using-redux/src/state/createStore.js +++ b/examples/using-redux/src/state/createStore.js @@ -1,4 +1,4 @@ -import { createStore as reduxCreateStore } from "redux"; +import { createStore as reduxCreateStore } from 'redux'; const reducer = (state, action) => { if (action.type === `INCREMENT`) { diff --git a/package.json b/package.json index 270fc37..9043393 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,8 @@ "prepare": "lerna run prepare", "all:outdated": "yarn outdated", "all:upgrade": "yarn upgrade-interactive --latest", - "lint": "eslint . --cache --report-unused-disable-directives", - "lint:ci": "eslint . --report-unused-disable-directives", - "lint:fix": "eslint . --cache --fix" + "lint": "eslint . --report-unused-disable-directives", + "lint:fix": "eslint . --fix" }, "workspaces": [ "packages/*", @@ -24,10 +23,15 @@ "www" ], "devDependencies": { + "@typescript-eslint/eslint-plugin": "^3.7.0", + "@typescript-eslint/parser": "^3.7.0", "babel-eslint": "^10.0.2", "eslint": "^7.5.0", "eslint-config-prettier": "^6.11.0", "eslint-config-react-app": "^5.2.1", + "eslint-plugin-flowtype": "^5.2.0", + "eslint-plugin-import": "^2.22.0", + "eslint-plugin-jsx-a11y": "^6.3.1", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.20.3", "eslint-plugin-react-hooks": "^4.0.8", diff --git a/packages/gatsby-material-ui-components/package.json b/packages/gatsby-material-ui-components/package.json index e8e58c0..c45b0a3 100644 --- a/packages/gatsby-material-ui-components/package.json +++ b/packages/gatsby-material-ui-components/package.json @@ -1,9 +1,16 @@ { "name": "gatsby-material-ui-components", + "description": "Material-UI componentes for Gatsby", "version": "1.0.0", "license": "MIT", "main": "lib/index.js", "types": "lib/index.d.ts", + "keywords": [ + "react", + "material-ui", + "gatsby", + "typescript" + ], "files": [ "lib" ], diff --git a/packages/gatsby-material-ui-components/src/button.tsx b/packages/gatsby-material-ui-components/src/button.tsx index a8feeeb..02cf8c9 100644 --- a/packages/gatsby-material-ui-components/src/button.tsx +++ b/packages/gatsby-material-ui-components/src/button.tsx @@ -1,5 +1,5 @@ -import MuiButton, { ButtonProps } from "@material-ui/core/Button"; +import MuiButton, { ButtonProps } from '@material-ui/core/Button'; -import patchButtonBaseComponent from "./patch-base-button-components"; +import patchButtonBaseComponent from './patch-base-button-components'; export const Button = patchButtonBaseComponent(MuiButton); diff --git a/packages/gatsby-material-ui-components/src/card-action-area.tsx b/packages/gatsby-material-ui-components/src/card-action-area.tsx index 095c4c2..dd0b404 100644 --- a/packages/gatsby-material-ui-components/src/card-action-area.tsx +++ b/packages/gatsby-material-ui-components/src/card-action-area.tsx @@ -5,5 +5,5 @@ import MuiCardActionArea, { import patchButtonBaseComponent from './patch-base-button-components'; export const CardActionArea = patchButtonBaseComponent( - MuiCardActionArea + MuiCardActionArea, ); diff --git a/packages/gatsby-material-ui-components/src/fab.tsx b/packages/gatsby-material-ui-components/src/fab.tsx index b8d3602..19bb28c 100644 --- a/packages/gatsby-material-ui-components/src/fab.tsx +++ b/packages/gatsby-material-ui-components/src/fab.tsx @@ -1,5 +1,5 @@ -import MuiFab, { FabProps } from "@material-ui/core/Fab"; +import MuiFab, { FabProps } from '@material-ui/core/Fab'; -import patchButtonBaseComponent from "./patch-base-button-components"; +import patchButtonBaseComponent from './patch-base-button-components'; export const Fab = patchButtonBaseComponent(MuiFab); diff --git a/packages/gatsby-material-ui-components/src/glink.tsx b/packages/gatsby-material-ui-components/src/glink.tsx index ffa0db0..7b7abfe 100644 --- a/packages/gatsby-material-ui-components/src/glink.tsx +++ b/packages/gatsby-material-ui-components/src/glink.tsx @@ -1,11 +1,16 @@ import React from 'react'; import { Link, GatsbyLinkProps } from 'gatsby'; -interface ALinkProps extends Omit , 'to'> { +interface ALinkProps extends Omit, 'to'> { href: string; } -const ALink: React.FC = ({ href, children, innerRef, ...other }) => ( +const ALink: React.FC = ({ + href, + children, + innerRef, + ...other +}) => ( {children} @@ -13,8 +18,8 @@ const ALink: React.FC = ({ href, children, innerRef, ...other }) => export const GatsbyLink = React.forwardRef( ( - props: Omit, 'ref'>, - ref: React.Ref + props: Omit, 'ref'>, + ref: React.Ref, ) => { const { to, activeClassName, partiallyActive, ...other } = props; const internal = /^\/(?!\/)/.test(to); @@ -37,7 +42,7 @@ export const GatsbyLink = React.forwardRef( ); } return ; - } + }, ); -GatsbyLink.displayName = `Link`; +GatsbyLink.displayName = 'Link'; diff --git a/packages/gatsby-material-ui-components/src/icon-button.tsx b/packages/gatsby-material-ui-components/src/icon-button.tsx index 040a1d8..60f425c 100644 --- a/packages/gatsby-material-ui-components/src/icon-button.tsx +++ b/packages/gatsby-material-ui-components/src/icon-button.tsx @@ -1,5 +1,7 @@ -import MuiIconButton, { IconButtonProps } from "@material-ui/core/IconButton"; +import MuiIconButton, { IconButtonProps } from '@material-ui/core/IconButton'; -import patchButtonBaseComponent from "./patch-base-button-components"; +import patchButtonBaseComponent from './patch-base-button-components'; -export const IconButton = patchButtonBaseComponent(MuiIconButton); +export const IconButton = patchButtonBaseComponent( + MuiIconButton, +); diff --git a/packages/gatsby-material-ui-components/src/index.tsx b/packages/gatsby-material-ui-components/src/index.tsx index 0e5a40f..1498648 100644 --- a/packages/gatsby-material-ui-components/src/index.tsx +++ b/packages/gatsby-material-ui-components/src/index.tsx @@ -1,7 +1,7 @@ -export * from "./link"; -export * from "./glink"; -export * from "./card-action-area"; -export * from "./button"; -export * from "./icon-button"; -export * from "./fab"; -export * from "./bottom-navigation-action"; +export * from './link'; +export * from './glink'; +export * from './card-action-area'; +export * from './button'; +export * from './icon-button'; +export * from './fab'; +export * from './bottom-navigation-action'; diff --git a/packages/gatsby-material-ui-components/src/link.tsx b/packages/gatsby-material-ui-components/src/link.tsx index 2aabf07..421076e 100644 --- a/packages/gatsby-material-ui-components/src/link.tsx +++ b/packages/gatsby-material-ui-components/src/link.tsx @@ -1,7 +1,7 @@ -import React from "react"; -import MuiLink, { LinkProps } from "@material-ui/core/Link"; +import React from 'react'; +import MuiLink, { LinkProps } from '@material-ui/core/Link'; -import { GatsbyLink } from "./glink"; +import { GatsbyLink } from './glink'; export const Link: React.FC = (props) => { const { to } = props; diff --git a/packages/gatsby-material-ui-components/src/patch-base-button-components.tsx b/packages/gatsby-material-ui-components/src/patch-base-button-components.tsx index baa6768..c2a5a7a 100644 --- a/packages/gatsby-material-ui-components/src/patch-base-button-components.tsx +++ b/packages/gatsby-material-ui-components/src/patch-base-button-components.tsx @@ -8,12 +8,19 @@ export interface GatsbyProps { } export default function patchButtonBaseComponent

( - BaseButtonComponent: React.ComponentType

+ BaseButtonComponent: React.ComponentType

, ) { return React.forwardRef, P & GatsbyProps>((props, ref) => { const { to, ...buttonProps } = props; const component = to ? GatsbyLink : `button`; - return ; + return ( + + ); }); } diff --git a/packages/gatsby-theme-material-ui-layout/README.md b/packages/gatsby-theme-material-ui-layout/README.md index 749c7f0..1d61b98 100644 --- a/packages/gatsby-theme-material-ui-layout/README.md +++ b/packages/gatsby-theme-material-ui-layout/README.md @@ -1,4 +1,4 @@ -# gatsby-theme-material-ui-landing-page +# gatsby-theme-material-ui-layout > A [Gatsby](https://github.com/gatsbyjs/gatsby) theme for > [Material-UI](https://github.com/mui-org/material-ui) diff --git a/packages/gatsby-theme-material-ui-layout/components.js b/packages/gatsby-theme-material-ui-layout/components.js index 878a9ab..eef565f 100644 --- a/packages/gatsby-theme-material-ui-layout/components.js +++ b/packages/gatsby-theme-material-ui-layout/components.js @@ -1 +1 @@ -export * from "./src/components"; +export * from './src/components'; diff --git a/packages/gatsby-theme-material-ui-layout/gatsby-browser.js b/packages/gatsby-theme-material-ui-layout/gatsby-browser.js index db97b8a..a1d66fd 100644 --- a/packages/gatsby-theme-material-ui-layout/gatsby-browser.js +++ b/packages/gatsby-theme-material-ui-layout/gatsby-browser.js @@ -1,6 +1,6 @@ -import NProgress from "nprogress"; +import NProgress from 'nprogress'; -import wrapWithLayout from "./src/wrap-with-layout"; +import wrapWithLayout from './src/wrap-with-layout'; export const wrapPageElement = wrapWithLayout; diff --git a/packages/gatsby-theme-material-ui-layout/gatsby-ssr.js b/packages/gatsby-theme-material-ui-layout/gatsby-ssr.js index 2c2c71c..608392b 100644 --- a/packages/gatsby-theme-material-ui-layout/gatsby-ssr.js +++ b/packages/gatsby-theme-material-ui-layout/gatsby-ssr.js @@ -1,3 +1,3 @@ -import wrapWithLayout from "./src/wrap-with-layout"; +import wrapWithLayout from './src/wrap-with-layout'; export const wrapPageElement = wrapWithLayout; diff --git a/packages/gatsby-theme-material-ui-layout/src/components/index.js b/packages/gatsby-theme-material-ui-layout/src/components/index.js index 1db1d9b..d1e8059 100644 --- a/packages/gatsby-theme-material-ui-layout/src/components/index.js +++ b/packages/gatsby-theme-material-ui-layout/src/components/index.js @@ -1,3 +1,3 @@ -export { default as SkipNav } from "./skip-nav"; -export { default as NProgressBar } from "./nprogress-bar"; -export * from "./title"; +export { default as SkipNav } from './skip-nav'; +export { default as NProgressBar } from './nprogress-bar'; +export * from './title'; diff --git a/packages/gatsby-theme-material-ui-layout/src/components/nprogress-bar.js b/packages/gatsby-theme-material-ui-layout/src/components/nprogress-bar.js index 068de67..54d6d83 100644 --- a/packages/gatsby-theme-material-ui-layout/src/components/nprogress-bar.js +++ b/packages/gatsby-theme-material-ui-layout/src/components/nprogress-bar.js @@ -1,7 +1,7 @@ -import React from "react"; -import NProgress from "nprogress"; -import { withStyles } from "@material-ui/core/styles"; -import NoSsr from "@material-ui/core/NoSsr"; +import React from 'react'; +import NProgress from 'nprogress'; +import { withStyles } from '@material-ui/core/styles'; +import NoSsr from '@material-ui/core/NoSsr'; NProgress.configure({ template: ` @@ -16,8 +16,8 @@ const styles = (theme) => { const color = `green`; return { - "@global": { - "#nprogress": { + '@global': { + '#nprogress': { direction: `ltr`, pointerEvents: `none`, position: `fixed`, @@ -27,7 +27,7 @@ const styles = (theme) => { height: 2, zIndex: theme.zIndex.tooltip, backgroundColor: `#e0e0e0`, - "& .nprogress-bar": { + '& .nprogress-bar': { position: `fixed`, backgroundColor: color, top: 0, @@ -35,7 +35,7 @@ const styles = (theme) => { right: 0, height: 2, }, - "& dd, & dt": { + '& dd, & dt': { position: `absolute`, top: 0, height: 2, @@ -43,24 +43,24 @@ const styles = (theme) => { borderRadius: `100%`, animation: `nprogress-pulse 2s ease-out 0s infinite`, }, - "& dd": { + '& dd': { opacity: 0.6, width: 20, right: 0, clip: `rect(-6px,22px,14px,10px)`, }, - "& dt": { + '& dt': { opacity: 0.6, width: 180, right: -80, clip: `rect(-6px,90px,14px,-6px)`, }, }, - "@keyframes nprogress-pulse": { - "30%": { + '@keyframes nprogress-pulse': { + '30%': { opacity: 0.6, }, - "60%": { + '60%': { opacity: 0, }, to: { diff --git a/packages/gatsby-theme-material-ui-layout/src/components/skip-nav.js b/packages/gatsby-theme-material-ui-layout/src/components/skip-nav.js index 601c1f6..d5ef0e2 100644 --- a/packages/gatsby-theme-material-ui-layout/src/components/skip-nav.js +++ b/packages/gatsby-theme-material-ui-layout/src/components/skip-nav.js @@ -1,6 +1,6 @@ -import React from "react"; -import { makeStyles } from "@material-ui/styles"; -import { Link } from "gatsby-theme-material-ui"; +import React from 'react'; +import { makeStyles } from '@material-ui/styles'; +import { Link } from 'gatsby-theme-material-ui'; const useStyles = makeStyles((theme) => ({ skipLink: { @@ -14,7 +14,7 @@ const useStyles = makeStyles((theme) => ({ overflow: `hidden`, position: `absolute`, zIndex: 100, - "&:focus": { + '&:focus': { padding: theme.spacing(2), position: `fixed`, top: theme.spacing(4), diff --git a/packages/gatsby-theme-material-ui-layout/src/components/title/index.js b/packages/gatsby-theme-material-ui-layout/src/components/title/index.js index 9fecd7b..a28ccdb 100644 --- a/packages/gatsby-theme-material-ui-layout/src/components/title/index.js +++ b/packages/gatsby-theme-material-ui-layout/src/components/title/index.js @@ -1 +1 @@ -export { default as Title } from "./title"; +export { default as Title } from './title'; diff --git a/packages/gatsby-theme-material-ui-layout/src/components/title/title.js b/packages/gatsby-theme-material-ui-layout/src/components/title/title.js index 15dccbf..8c042d2 100644 --- a/packages/gatsby-theme-material-ui-layout/src/components/title/title.js +++ b/packages/gatsby-theme-material-ui-layout/src/components/title/title.js @@ -1,8 +1,8 @@ -import React from "react"; -import { Button } from "gatsby-theme-material-ui"; -import { makeStyles } from "@material-ui/core/styles"; +import React from 'react'; +import { Button } from 'gatsby-theme-material-ui'; +import { makeStyles } from '@material-ui/core/styles'; -import useSiteMetadata from "../../hooks/use-site-metadata"; +import useSiteMetadata from '../../hooks/use-site-metadata'; const useStyles = makeStyles((theme) => ({ title: { @@ -12,7 +12,7 @@ const useStyles = makeStyles((theme) => ({ textTransform: `none`, color: `inherit`, padding: `8px 16px`, - "&:hover,&:focus": { + '&:hover,&:focus': { color: `inherit`, background: `transparent`, }, diff --git a/packages/gatsby-theme-material-ui-layout/src/hooks/use-site-metadata.js b/packages/gatsby-theme-material-ui-layout/src/hooks/use-site-metadata.js index a5045e7..123748e 100644 --- a/packages/gatsby-theme-material-ui-layout/src/hooks/use-site-metadata.js +++ b/packages/gatsby-theme-material-ui-layout/src/hooks/use-site-metadata.js @@ -1,4 +1,4 @@ -import { graphql, useStaticQuery } from "gatsby"; +import { graphql, useStaticQuery } from 'gatsby'; export default () => { const data = useStaticQuery(graphql` diff --git a/packages/gatsby-theme-material-ui-layout/src/layout/content.js b/packages/gatsby-theme-material-ui-layout/src/layout/content.js index e3b708c..9570750 100644 --- a/packages/gatsby-theme-material-ui-layout/src/layout/content.js +++ b/packages/gatsby-theme-material-ui-layout/src/layout/content.js @@ -1,4 +1,4 @@ -import React from "react"; +import React from 'react'; export default function Content({ children }) { return

{children}
; diff --git a/packages/gatsby-theme-material-ui-layout/src/layout/footer.js b/packages/gatsby-theme-material-ui-layout/src/layout/footer.js index 02d7e53..cde1ff1 100644 --- a/packages/gatsby-theme-material-ui-layout/src/layout/footer.js +++ b/packages/gatsby-theme-material-ui-layout/src/layout/footer.js @@ -1,10 +1,10 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import Grid from "@material-ui/core/Grid"; -import Typography from "@material-ui/core/Typography"; -import { makeStyles } from "@material-ui/core/styles"; -import Container from "@material-ui/core/Container"; -import Box from "@material-ui/core/Box"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import Grid from '@material-ui/core/Grid'; +import Typography from '@material-ui/core/Typography'; +import { makeStyles } from '@material-ui/core/styles'; +import Container from '@material-ui/core/Container'; +import Box from '@material-ui/core/Box'; function BuildWith() { return ( diff --git a/packages/gatsby-theme-material-ui-layout/src/layout/index.js b/packages/gatsby-theme-material-ui-layout/src/layout/index.js index 97cc531..875aeaf 100644 --- a/packages/gatsby-theme-material-ui-layout/src/layout/index.js +++ b/packages/gatsby-theme-material-ui-layout/src/layout/index.js @@ -1,3 +1,3 @@ -import Layout from "./layout"; +import Layout from './layout'; export default Layout; diff --git a/packages/gatsby-theme-material-ui-layout/src/layout/layout.js b/packages/gatsby-theme-material-ui-layout/src/layout/layout.js index 514f170..c338148 100644 --- a/packages/gatsby-theme-material-ui-layout/src/layout/layout.js +++ b/packages/gatsby-theme-material-ui-layout/src/layout/layout.js @@ -1,10 +1,10 @@ -import React from "react"; +import React from 'react'; -import NProgressBar from "../components/nprogress-bar"; -import SkipNav from "../components/skip-nav"; -import Header from "./header"; -import Content from "./content"; -import Footer from "./footer"; +import NProgressBar from '../components/nprogress-bar'; +import SkipNav from '../components/skip-nav'; +import Header from './header'; +import Content from './content'; +import Footer from './footer'; export default function Layout({ children }) { return ( diff --git a/packages/gatsby-theme-material-ui-layout/src/wrap-with-layout.js b/packages/gatsby-theme-material-ui-layout/src/wrap-with-layout.js index 93d0682..404a19d 100644 --- a/packages/gatsby-theme-material-ui-layout/src/wrap-with-layout.js +++ b/packages/gatsby-theme-material-ui-layout/src/wrap-with-layout.js @@ -1,5 +1,5 @@ -import React from "react"; -import Layout from "./layout"; +import React from 'react'; +import Layout from './layout'; export default function wrapWithLayout({ element, props }) { console.log(`Element`, element); diff --git a/packages/gatsby-theme-material-ui-top-layout/README.md b/packages/gatsby-theme-material-ui-top-layout/README.md index 3fe3dea..292db5e 100644 --- a/packages/gatsby-theme-material-ui-top-layout/README.md +++ b/packages/gatsby-theme-material-ui-top-layout/README.md @@ -1 +1,3 @@ +# gatsby-theme-material-ui-top-layout + This package is [used by the `gatsby-theme-material-ui`](../gatsby-theme-material-ui/README.md#top-layout) to prevent FOUC. diff --git a/packages/gatsby-theme-material-ui-top-layout/gatsby-browser.js b/packages/gatsby-theme-material-ui-top-layout/gatsby-browser.js index bbe5d98..14ad5ce 100644 --- a/packages/gatsby-theme-material-ui-top-layout/gatsby-browser.js +++ b/packages/gatsby-theme-material-ui-top-layout/gatsby-browser.js @@ -1,3 +1,3 @@ -import wrapWithProvider from "./src/wrap-with-provider"; +import wrapWithProvider from './src/wrap-with-provider'; export const wrapRootElement = wrapWithProvider; diff --git a/packages/gatsby-theme-material-ui-top-layout/gatsby-ssr.js b/packages/gatsby-theme-material-ui-top-layout/gatsby-ssr.js index bbe5d98..14ad5ce 100644 --- a/packages/gatsby-theme-material-ui-top-layout/gatsby-ssr.js +++ b/packages/gatsby-theme-material-ui-top-layout/gatsby-ssr.js @@ -1,3 +1,3 @@ -import wrapWithProvider from "./src/wrap-with-provider"; +import wrapWithProvider from './src/wrap-with-provider'; export const wrapRootElement = wrapWithProvider; diff --git a/packages/gatsby-theme-material-ui-top-layout/src/components/top-layout.js b/packages/gatsby-theme-material-ui-top-layout/src/components/top-layout.js index 2ba6661..f4fe010 100644 --- a/packages/gatsby-theme-material-ui-top-layout/src/components/top-layout.js +++ b/packages/gatsby-theme-material-ui-top-layout/src/components/top-layout.js @@ -1,8 +1,8 @@ -import React from "react"; -import CssBaseline from "@material-ui/core/CssBaseline"; -import { ThemeProvider } from "@material-ui/styles"; +import React from 'react'; +import CssBaseline from '@material-ui/core/CssBaseline'; +import { ThemeProvider } from '@material-ui/styles'; -import Viewport from "./viewport"; +import Viewport from './viewport'; export default function TopLayout({ children, theme }) { return ( diff --git a/packages/gatsby-theme-material-ui-top-layout/src/components/viewport.js b/packages/gatsby-theme-material-ui-top-layout/src/components/viewport.js index b67ec50..47769f2 100644 --- a/packages/gatsby-theme-material-ui-top-layout/src/components/viewport.js +++ b/packages/gatsby-theme-material-ui-top-layout/src/components/viewport.js @@ -1,5 +1,5 @@ -import React from "react"; -import { Helmet } from "react-helmet"; +import React from 'react'; +import { Helmet } from 'react-helmet'; export default function Viewport({ children }) { return ( diff --git a/packages/gatsby-theme-material-ui-top-layout/src/theme.js b/packages/gatsby-theme-material-ui-top-layout/src/theme.js index b35ded8..814971b 100644 --- a/packages/gatsby-theme-material-ui-top-layout/src/theme.js +++ b/packages/gatsby-theme-material-ui-top-layout/src/theme.js @@ -1,4 +1,4 @@ -import { createMuiTheme } from "@material-ui/core/styles"; +import { createMuiTheme } from '@material-ui/core/styles'; const theme = createMuiTheme(); diff --git a/packages/gatsby-theme-material-ui-top-layout/src/wrap-with-provider.js b/packages/gatsby-theme-material-ui-top-layout/src/wrap-with-provider.js index 9c06a44..315fa58 100644 --- a/packages/gatsby-theme-material-ui-top-layout/src/wrap-with-provider.js +++ b/packages/gatsby-theme-material-ui-top-layout/src/wrap-with-provider.js @@ -1,7 +1,7 @@ -import React from "react"; +import React from 'react'; -import TopLayout from "./components/top-layout"; -import theme from "./theme"; +import TopLayout from './components/top-layout'; +import theme from './theme'; export default function wrapWithProvider({ element }) { return {element}; diff --git a/packages/gatsby-theme-material-ui/index.d.ts b/packages/gatsby-theme-material-ui/index.d.ts index c984e91..9f6c6b7 100644 --- a/packages/gatsby-theme-material-ui/index.d.ts +++ b/packages/gatsby-theme-material-ui/index.d.ts @@ -1 +1 @@ -export * from "gatsby-material-ui-components"; +export * from 'gatsby-material-ui-components'; diff --git a/packages/gatsby-theme-material-ui/index.js b/packages/gatsby-theme-material-ui/index.js index c984e91..9f6c6b7 100644 --- a/packages/gatsby-theme-material-ui/index.js +++ b/packages/gatsby-theme-material-ui/index.js @@ -1 +1 @@ -export * from "gatsby-material-ui-components"; +export * from 'gatsby-material-ui-components'; diff --git a/packages/material-ui-mdx/src/CodeBlock.js b/packages/material-ui-mdx/src/CodeBlock.js index 746eea4..6fb94d5 100644 --- a/packages/material-ui-mdx/src/CodeBlock.js +++ b/packages/material-ui-mdx/src/CodeBlock.js @@ -1,6 +1,6 @@ -import React from "react"; -import Highlight, { defaultProps } from "prism-react-renderer"; -import { LiveProvider, LiveEditor, LiveError, LivePreview } from "react-live"; +import React from 'react'; +import Highlight, { defaultProps } from 'prism-react-renderer'; +import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'; export default function CodeBlock({ children, diff --git a/packages/material-ui-mdx/src/index.js b/packages/material-ui-mdx/src/index.js index 0910bd2..3a2a35c 100644 --- a/packages/material-ui-mdx/src/index.js +++ b/packages/material-ui-mdx/src/index.js @@ -1,11 +1,11 @@ -import React, { useContext } from "react"; -import { MDXProvider } from "@mdx-js/react"; -import { ThemeProvider } from "@material-ui/styles"; -import { createMuiTheme } from "@material-ui/core/styles"; -import Typography from "@material-ui/core/Typography"; -import Link from "@material-ui/core/Link"; +import React, { useContext } from 'react'; +import { MDXProvider } from '@mdx-js/react'; +import { ThemeProvider } from '@material-ui/styles'; +import { createMuiTheme } from '@material-ui/core/styles'; +import Typography from '@material-ui/core/Typography'; +import Link from '@material-ui/core/Link'; -import CodeBlock from "./CodeBlock"; +import CodeBlock from './CodeBlock'; const components = { p: (props) => , diff --git a/www/src/components/header/app-bar.js b/www/src/components/header/app-bar.js index 53de2b8..bd9a2be 100644 --- a/www/src/components/header/app-bar.js +++ b/www/src/components/header/app-bar.js @@ -1,13 +1,13 @@ -import React, { useState, useEffect } from "react"; -import classNames from "classnames"; -import MuiAppBar from "@material-ui/core/AppBar"; -import Toolbar from "@material-ui/core/Toolbar"; -import Hidden from "@material-ui/core/Hidden"; -import Drawer from "@material-ui/core/Drawer"; -import IconButton from "@material-ui/core/IconButton"; -import Menu from "@material-ui/icons/Menu"; -import Box from "@material-ui/core/Box"; -import { makeStyles } from "@material-ui/core/styles"; +import React, { useState, useEffect } from 'react'; +import classNames from 'classnames'; +import MuiAppBar from '@material-ui/core/AppBar'; +import Toolbar from '@material-ui/core/Toolbar'; +import Hidden from '@material-ui/core/Hidden'; +import Drawer from '@material-ui/core/Drawer'; +import IconButton from '@material-ui/core/IconButton'; +import Menu from '@material-ui/icons/Menu'; +import Box from '@material-ui/core/Box'; +import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => ({ appBar: { diff --git a/www/src/components/header/header.js b/www/src/components/header/header.js index f3689be..1e5a707 100644 --- a/www/src/components/header/header.js +++ b/www/src/components/header/header.js @@ -1,9 +1,9 @@ -import React from "react"; -import { Title } from "gatsby-theme-material-ui-layout/components"; +import React from 'react'; +import { Title } from 'gatsby-theme-material-ui-layout/components'; -import AppBar from "./app-bar"; -import LeftLinks from "./left-links"; -import RightLinks from "./right-links"; +import AppBar from './app-bar'; +import LeftLinks from './left-links'; +import RightLinks from './right-links'; export default function Header() { return ( diff --git a/www/src/components/header/index.js b/www/src/components/header/index.js index 43ff0ea..77992c5 100644 --- a/www/src/components/header/index.js +++ b/www/src/components/header/index.js @@ -1 +1 @@ -export { default } from "./header"; +export { default } from './header'; diff --git a/www/src/components/header/left-links.js b/www/src/components/header/left-links.js index 3bb862d..9897c8d 100644 --- a/www/src/components/header/left-links.js +++ b/www/src/components/header/left-links.js @@ -1,6 +1,6 @@ -import React from "react"; -import { Link } from "gatsby-theme-material-ui"; -import { makeStyles } from "@material-ui/core/styles"; +import React from 'react'; +import { Link } from 'gatsby-theme-material-ui'; +import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles((theme) => ({ link: { diff --git a/www/src/components/header/right-links.js b/www/src/components/header/right-links.js index f48f11c..2c7b017 100644 --- a/www/src/components/header/right-links.js +++ b/www/src/components/header/right-links.js @@ -1,9 +1,9 @@ -import React from "react"; -import { makeStyles } from "@material-ui/core/styles"; -import { IconButton } from "gatsby-theme-material-ui"; +import React from 'react'; +import { makeStyles } from '@material-ui/core/styles'; +import { IconButton } from 'gatsby-theme-material-ui'; -import GitHubIcon from "../../svg-icons/github-icon"; -import TwitterIcon from "../../svg-icons/twitter-icon"; +import GitHubIcon from '../../svg-icons/github-icon'; +import TwitterIcon from '../../svg-icons/twitter-icon'; const useStyles = makeStyles((theme) => ({ icon: { diff --git a/www/src/gatsby-theme-material-ui-layout/layout/header.js b/www/src/gatsby-theme-material-ui-layout/layout/header.js index f3dc4ee..3f06754 100644 --- a/www/src/gatsby-theme-material-ui-layout/layout/header.js +++ b/www/src/gatsby-theme-material-ui-layout/layout/header.js @@ -1 +1 @@ -export { default } from "../../components/header"; +export { default } from '../../components/header'; diff --git a/www/src/gatsby-theme-material-ui/theme.js b/www/src/gatsby-theme-material-ui/theme.js index ba6d545..1440381 100644 --- a/www/src/gatsby-theme-material-ui/theme.js +++ b/www/src/gatsby-theme-material-ui/theme.js @@ -1,4 +1,4 @@ -import { createMuiTheme, responsiveFontSizes } from "@material-ui/core/styles"; +import { createMuiTheme, responsiveFontSizes } from '@material-ui/core/styles'; // A custom theme for this app const theme = createMuiTheme({ diff --git a/www/src/gatsby-theme-netlify-cms/config.js b/www/src/gatsby-theme-netlify-cms/config.js index e556281..0dcebe8 100644 --- a/www/src/gatsby-theme-netlify-cms/config.js +++ b/www/src/gatsby-theme-netlify-cms/config.js @@ -1,4 +1,4 @@ -import { createConfig } from "gatsby-theme-netlify-cms"; +import { createConfig } from 'gatsby-theme-netlify-cms'; const config = createConfig({ backend: { diff --git a/www/src/pages/404.js b/www/src/pages/404.js index 4fde824..7ca0756 100644 --- a/www/src/pages/404.js +++ b/www/src/pages/404.js @@ -1,4 +1,4 @@ -import React from "react"; +import React from 'react'; function NotFoundPage() { return ( diff --git a/www/src/pages/index.js b/www/src/pages/index.js index bc54652..7369fe9 100644 --- a/www/src/pages/index.js +++ b/www/src/pages/index.js @@ -1,4 +1,4 @@ -import React from "react"; +import React from 'react'; function IndexPage() { return ( diff --git a/www/src/svg-icons/github-icon.js b/www/src/svg-icons/github-icon.js index 3534036..a2fd1ce 100644 --- a/www/src/svg-icons/github-icon.js +++ b/www/src/svg-icons/github-icon.js @@ -1,5 +1,5 @@ -import React from "react"; -import SvgIcon from "@material-ui/core/SvgIcon"; +import React from 'react'; +import SvgIcon from '@material-ui/core/SvgIcon'; function GitHubIcon(props) { return ( diff --git a/www/src/svg-icons/twitter-icon.js b/www/src/svg-icons/twitter-icon.js index ebc3537..a3779a5 100644 --- a/www/src/svg-icons/twitter-icon.js +++ b/www/src/svg-icons/twitter-icon.js @@ -1,5 +1,5 @@ -import React from "react"; -import SvgIcon from "@material-ui/core/SvgIcon"; +import React from 'react'; +import SvgIcon from '@material-ui/core/SvgIcon'; function Twitter(props) { return ( diff --git a/yarn.lock b/yarn.lock index 6b710b5..0505d1c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2494,6 +2494,18 @@ regexpp "^3.0.0" tsutils "^3.17.1" +"@typescript-eslint/eslint-plugin@^3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.7.0.tgz#0f91aa3c83d019591719e597fbdb73a59595a263" + integrity sha512-4OEcPON3QIx0ntsuiuFP/TkldmBGXf0uKxPQlGtS/W2F3ndYm8Vgdpj/woPJkzUc65gd3iR+qi3K8SDQP/obFg== + dependencies: + "@typescript-eslint/experimental-utils" "3.7.0" + debug "^4.1.1" + functional-red-black-tree "^1.0.1" + regexpp "^3.0.0" + semver "^7.3.2" + tsutils "^3.17.1" + "@typescript-eslint/experimental-utils@2.34.0": version "2.34.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.34.0.tgz#d3524b644cdb40eebceca67f8cf3e4cc9c8f980f" @@ -2504,6 +2516,17 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" +"@typescript-eslint/experimental-utils@3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.7.0.tgz#0ee21f6c48b2b30c63211da23827725078d5169a" + integrity sha512-xpfXXAfZqhhqs5RPQBfAFrWDHoNxD5+sVB5A46TF58Bq1hRfVROrWHcQHHUM9aCBdy9+cwATcvCbRg8aIRbaHQ== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/types" "3.7.0" + "@typescript-eslint/typescript-estree" "3.7.0" + eslint-scope "^5.0.0" + eslint-utils "^2.0.0" + "@typescript-eslint/parser@^2.24.0": version "2.34.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.34.0.tgz#50252630ca319685420e9a39ca05fe185a256bc8" @@ -2514,6 +2537,22 @@ "@typescript-eslint/typescript-estree" "2.34.0" eslint-visitor-keys "^1.1.0" +"@typescript-eslint/parser@^3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.7.0.tgz#3e9cd9df9ea644536feb6e5acdb8279ecff96ce9" + integrity sha512-2LZauVUt7jAWkcIW7djUc3kyW+fSarNEuM3RF2JdLHR9BfX/nDEnyA4/uWz0wseoWVZbDXDF7iF9Jc342flNqQ== + dependencies: + "@types/eslint-visitor-keys" "^1.0.0" + "@typescript-eslint/experimental-utils" "3.7.0" + "@typescript-eslint/types" "3.7.0" + "@typescript-eslint/typescript-estree" "3.7.0" + eslint-visitor-keys "^1.1.0" + +"@typescript-eslint/types@3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.7.0.tgz#09897fab0cb95479c01166b10b2c03c224821077" + integrity sha512-reCaK+hyKkKF+itoylAnLzFeNYAEktB0XVfSQvf0gcVgpz1l49Lt6Vo9x4MVCCxiDydA0iLAjTF/ODH0pbfnpg== + "@typescript-eslint/typescript-estree@2.34.0": version "2.34.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.34.0.tgz#14aeb6353b39ef0732cc7f1b8285294937cf37d5" @@ -2527,6 +2566,27 @@ semver "^7.3.2" tsutils "^3.17.1" +"@typescript-eslint/typescript-estree@3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.7.0.tgz#66872e6da120caa4b64e6b4ca5c8702afc74738d" + integrity sha512-xr5oobkYRebejlACGr1TJ0Z/r0a2/HUf0SXqPvlgUMwiMqOCu/J+/Dr9U3T0IxpE5oLFSkqMx1FE/dKaZ8KsOQ== + dependencies: + "@typescript-eslint/types" "3.7.0" + "@typescript-eslint/visitor-keys" "3.7.0" + debug "^4.1.1" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^7.3.2" + tsutils "^3.17.1" + +"@typescript-eslint/visitor-keys@3.7.0": + version "3.7.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.7.0.tgz#ac0417d382a136e4571a0b0dcfe52088cb628177" + integrity sha512-k5PiZdB4vklUpUX4NBncn5RBKty8G3ihTY+hqJsCdMuD0v4jofI5xuqwnVcWxfv6iTm2P/dfEa2wMUnsUY8ODw== + dependencies: + eslint-visitor-keys "^1.1.0" + "@urql/core@^1.12.0": version "1.12.2" resolved "https://registry.yarnpkg.com/@urql/core/-/core-1.12.2.tgz#88c031dc0e39da412964b05ae8e89c634fca0220" @@ -6147,6 +6207,14 @@ eslint-plugin-flowtype@^3.13.0: dependencies: lodash "^4.17.15" +eslint-plugin-flowtype@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-5.2.0.tgz#a4bef5dc18f9b2bdb41569a4ab05d73805a3d261" + integrity sha512-z7ULdTxuhlRJcEe1MVljePXricuPOrsWfScRXFhNzVD5dmTHWjIF57AxD0e7AbEoLSbjSsaA5S+hCg43WvpXJQ== + dependencies: + lodash "^4.17.15" + string-natural-compare "^3.0.1" + eslint-plugin-graphql@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/eslint-plugin-graphql/-/eslint-plugin-graphql-3.1.1.tgz#640f7f73f12cee2f7145140bd2ff21694018bff5" @@ -15108,6 +15176,11 @@ string-length@^3.1.0: astral-regex "^1.0.0" strip-ansi "^5.2.0" +string-natural-compare@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4" + integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw== + string-similarity@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/string-similarity/-/string-similarity-1.2.2.tgz#99b2c20a3c9bbb3903964eae1d89856db3d8db9b"