Skip to content

Commit d532fdd

Browse files
authored
Merge pull request #310 from ruisaraiva19/develop
chore: release
2 parents 837a46b + fcdea65 commit d532fdd

31 files changed

+283
-172
lines changed

.eslintrc.json

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"prettier/prettier": "error",
1818
"react/prop-types": "off",
1919
"no-param-reassign": "off",
20+
"react/jsx-uses-react": "off",
21+
"react/react-in-jsx-scope": "off",
2022
"react/jsx-filename-extension": [
2123
1,
2224
{

components/base-layout/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import PropTypes from 'prop-types'
32
import { Header } from 'components/header'
43

components/button/index.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import { withKnobs, text, select, boolean } from '@storybook/addon-knobs'
32
import { Button } from '.'
43
import useDarkMode from 'use-dark-mode'

components/button/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import PropTypes from 'prop-types'
32
import classNames from 'classnames'
43

components/checkbox/index.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import { Checkbox } from '.'
32
import useDarkMode from 'use-dark-mode'
43
import { Typography } from 'components/typography'

components/dark-mode-toggle/index.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import { DarkModeToggle } from '.'
32
import useDarkMode from 'use-dark-mode'
43
import { Typography } from 'components/typography'

components/dark-mode-toggle/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import useDarkMode from 'use-dark-mode'
32
import { SvgSun } from 'components/svgs/svg-sun'
43
import { SvgMoon } from 'components/svgs/svg-moon'

components/drag-and-drop/index.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import useDarkMode from 'use-dark-mode'
32
import { DragAndDrop } from '.'
43
import { Button } from 'components/button'

components/header/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import classnames from 'classnames'
32
import { DarkModeToggle } from 'components/dark-mode-toggle'
43
import { SvgFavycon } from 'components/svgs/svg-favycon'

components/index.stories.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react'
2-
31
export default {
42
title: 'Welcome',
53
}

components/seo/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import Head from 'next/head'
32

43
type SEOProps = {

components/sticky/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import PropTypes from 'prop-types'
32

43
import styles from './index.module.scss'

components/svgs/svg-check.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import classnames from 'classnames'
32

43
type SvgCheckProps = {

components/svgs/svg-checkbox.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import classnames from 'classnames'
32

43
import styles from './svg-checkbox.module.scss'

components/svgs/svg-drop-zone.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react'
2-
31
import styles from './svg-drop-zone.module.scss'
42

53
const SvgDropZone: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>> = (props) => {

components/svgs/svg-error.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import classnames from 'classnames'
32

43
type SvgErrorProps = {

components/svgs/svg-favycon.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react'
2-
31
import styles from './svg-favycon.module.scss'
42

53
const SvgFavycon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>> = (props) => {

components/svgs/svg-github.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react'
2-
31
const SvgGithub: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>> = (props) => (
42
<svg height={18} viewBox="0 0 16 16" width={18} {...props}>
53
<path

components/svgs/svg-image-upload.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import classnames from 'classnames'
32

43
import styles from './svg-image-upload.module.scss'

components/svgs/svg-info.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react'
2-
31
import styles from './svg-info.module.scss'
42

53
const SvgInfo: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>> = (props) => {

components/svgs/svg-moon.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react'
2-
31
const SvgMoon: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>> = (props) => {
42
const idPrefix = 'svg-moon-'
53
return (

components/svgs/svg-sun.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react'
2-
31
const SvgSun: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>> = (props) => {
42
const idPrefix = 'svg-sun-'
53
return (

components/svgs/svg-twitter.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react'
2-
31
const SvgTwitter: React.FC<JSX.IntrinsicAttributes & React.SVGProps<SVGSVGElement>> = (props) => (
42
<svg width={18} height={18} viewBox="0 0 18 18" fill="none" {...props}>
53
<path

components/tool-title/index.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import { withKnobs } from '@storybook/addon-knobs'
32
import useDarkMode from 'use-dark-mode'
43
import { Button } from 'components/button'

components/tool-title/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import { Typography } from 'components/typography'
32
import { SvgFavycon } from 'components/svgs/svg-favycon'
43

components/typography/index.stories.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import { withKnobs, text, select } from '@storybook/addon-knobs'
32
import useDarkMode from 'use-dark-mode'
43
import { Button } from 'components/button'

hooks/use-toggle.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import React from 'react'
1+
import { useState, useCallback } from 'react'
22

33
export const useToggle = (initialValue = false): [boolean, () => void] => {
4-
const [value, setValue] = React.useState(initialValue)
4+
const [value, setValue] = useState(initialValue)
55

6-
const toggle = React.useCallback(() => {
6+
const toggle = useCallback(() => {
77
setValue((v) => !v)
88
}, [])
99

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,21 @@
4343
},
4444
"dependencies": {
4545
"@fiahfy/ico-convert": "0.0.7",
46-
"@prefresh/next": "1.2.4",
46+
"@prefresh/next": "1.3.0",
4747
"adm-zip": "0.4.16",
4848
"classnames": "2.2.6",
4949
"multer": "1.4.2",
50-
"next": "9.5.4",
50+
"next": "9.5.5",
5151
"nprogress": "0.2.0",
5252
"object-fit-images": "3.2.4",
5353
"preact": "10.5.4",
5454
"preact-render-to-string": "5.1.10",
55-
"preact-ssr-prepass": "1.1.1",
56-
"prismjs": "1.21.0",
55+
"preact-ssr-prepass": "1.1.2",
56+
"prismjs": "1.22.0",
5757
"prop-types": "15.7.2",
58-
"react": "16.13.1",
58+
"react": "16.14.0",
5959
"react-clipboard.js": "2.0.16",
60-
"react-dom": "16.13.1",
60+
"react-dom": "16.14.0",
6161
"react-dropzone": "11.2.0",
6262
"react-lazy-images": "1.1.0",
6363
"react-modal": "3.11.2",
@@ -84,27 +84,27 @@
8484
"@types/adm-zip": "0.4.33",
8585
"@types/classnames": "2.2.10",
8686
"@types/multer": "1.4.4",
87-
"@types/node": "14.11.5",
87+
"@types/node": "14.11.8",
8888
"@types/nprogress": "0.2.0",
8989
"@types/object-fit-images": "3.2.0",
9090
"@types/prismjs": "1.16.1",
91-
"@types/react": "16.9.51",
91+
"@types/react": "16.9.53",
9292
"@types/react-modal": "3.10.6",
9393
"@types/react-transition-group": "4.4.0",
9494
"@types/sharp": "0.25.1",
95-
"@typescript-eslint/eslint-plugin": "4.4.0",
96-
"@typescript-eslint/parser": "4.4.0",
97-
"all-contributors-cli": "6.18.0",
95+
"@typescript-eslint/eslint-plugin": "4.4.1",
96+
"@typescript-eslint/parser": "4.4.1",
97+
"all-contributors-cli": "6.19.0",
9898
"babel-eslint": "10.1.0",
9999
"babel-loader": "8.1.0",
100100
"babel-plugin-prismjs": "2.0.1",
101101
"babel-preset-react-app": "9.1.2",
102102
"commitizen": "4.2.1",
103-
"cypress": "5.3.0",
103+
"cypress": "5.4.0",
104104
"cypress-file-upload": "4.1.1",
105105
"cz-conventional-changelog": "3.3.0",
106106
"dotenv": "8.2.0",
107-
"eslint": "7.10.0",
107+
"eslint": "7.11.0",
108108
"eslint-config-prettier": "6.12.0",
109109
"eslint-config-react": "1.1.7",
110110
"eslint-config-react-app": "5.2.1",
@@ -113,7 +113,7 @@
113113
"eslint-plugin-import": "2.22.1",
114114
"eslint-plugin-jsx-a11y": "6.3.1",
115115
"eslint-plugin-prettier": "3.1.4",
116-
"eslint-plugin-react": "7.21.3",
116+
"eslint-plugin-react": "7.21.4",
117117
"eslint-plugin-react-hooks": "4.1.2",
118118
"husky": "4.3.0",
119119
"lint-staged": "10.4.0",
@@ -124,9 +124,9 @@
124124
"prettier": "2.1.2",
125125
"react-refresh": "0.8.3",
126126
"regenerator-runtime": "0.13.7",
127-
"sass": "1.26.12",
128-
"sass-loader": "10.0.2",
129-
"semantic-release": "17.1.2",
127+
"sass": "1.27.0",
128+
"sass-loader": "10.0.3",
129+
"semantic-release": "17.2.1",
130130
"start-server-and-test": "1.11.5",
131131
"stylelint": "13.7.2",
132132
"stylelint-config-css-modules": "2.2.0",

pages/_app.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import { AppProps } from 'next/app'
32
import { MediaQueryProvider } from 'components/media-query-provider'
43

pages/_document.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react'
21
import Document, { Html, Head, Main, NextScript } from 'next/document'
32

43
const isProd = process.env.NODE_ENV === 'production'

0 commit comments

Comments
 (0)