Skip to content

Commit a0577cf

Browse files
committed
update .eslintrc.js for eslint-config-prettier 8.0.0
1 parent ffc47b9 commit a0577cf

File tree

24 files changed

+1092
-391
lines changed

24 files changed

+1092
-391
lines changed

Diff for: 08-component/02-props/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 08-component/02-props/package.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
"private": true,
55
"dependencies": {
66
"@testing-library/jest-dom": "^5.11.9",
7-
"@testing-library/react": "^11.2.3",
8-
"@testing-library/user-event": "^12.1.10",
7+
"@testing-library/react": "^11.2.5",
8+
"@testing-library/user-event": "^12.8.3",
99
"@types/jest": "^26.0.20",
10-
"@types/node": "^14.14.22",
11-
"@types/react": "^17.0.0",
12-
"@types/react-dom": "^17.0.0",
10+
"@types/node": "^14.14.34",
11+
"@types/react": "^17.0.3",
12+
"@types/react-dom": "^17.0.2",
1313
"react": "^17.0.1",
1414
"react-dom": "^17.0.1",
15-
"react-scripts": "4.0.1",
15+
"react-scripts": "4.0.3",
1616
"semantic-ui-css": "^2.4.1",
17-
"semantic-ui-react": "^2.0.2",
18-
"typescript": "^4.1.3",
19-
"web-vitals": "^1.1.0"
17+
"semantic-ui-react": "^2.0.3",
18+
"typescript": "^4.2.3",
19+
"web-vitals": "^1.1.1"
2020
},
2121
"scripts": {
2222
"start": "react-scripts start",
@@ -53,24 +53,24 @@
5353
]
5454
},
5555
"devDependencies": {
56-
"@types/prettier": "^2.1.6",
56+
"@types/prettier": "^2.2.2",
5757
"@types/stylelint": "^9.10.1",
5858
"@types/testing-library__jest-dom": "^5.9.5",
59-
"@typescript-eslint/eslint-plugin": "^4.14.0",
60-
"@typescript-eslint/parser": "^4.14.0",
59+
"@typescript-eslint/eslint-plugin": "^4.17.0",
60+
"@typescript-eslint/parser": "^4.17.0",
6161
"eslint-config-airbnb": "18.2.1",
62-
"eslint-config-prettier": "^7.2.0",
62+
"eslint-config-prettier": "^8.1.0",
6363
"eslint-plugin-import": "^2.22.1",
6464
"eslint-plugin-jsx-a11y": "^6.4.1",
65-
"eslint-plugin-prefer-arrow": "^1.2.2",
65+
"eslint-plugin-prefer-arrow": "^1.2.3",
6666
"eslint-plugin-react": "^7.22.0",
6767
"eslint-plugin-react-hooks": "4.2.0",
68-
"husky": "^4.3.8",
69-
"lint-staged": "^10.5.3",
68+
"husky": "^5.1.3",
69+
"lint-staged": "^10.5.4",
7070
"prettier": "^2.2.1",
71-
"stylelint": "^13.9.0",
71+
"stylelint": "^13.12.0",
7272
"stylelint-config-recess-order": "^2.3.0",
73-
"stylelint-config-standard": "^20.0.0",
73+
"stylelint-config-standard": "^21.0.0",
7474
"stylelint-order": "^4.1.0"
7575
},
7676
"husky": {

Diff for: 08-component/02-props/src/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { FC } from 'react';
1+
import { VFC } from 'react';
22
import CharacterList, { Character } from './CharacterList';
33
import './App.css';
44

5-
const App: FC = () => {
5+
const App: VFC = () => {
66
const characters: Character[] = [
77
{
88
id: 1,

Diff for: 08-component/02-props/src/CharacterList.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC } from 'react';
1+
import { VFC } from 'react';
22
import { Header, Icon, Item } from 'semantic-ui-react';
33

44
export type Character = {
@@ -13,7 +13,7 @@ type Props = {
1313
characters: Character[];
1414
};
1515

16-
const CharacterList: FC<Props> = (props) => {
16+
const CharacterList: VFC<Props> = (props) => {
1717
const { school, characters } = props;
1818

1919
return (

Diff for: 08-component/02-props/yarn.lock

+1,070-329
Large diffs are not rendered by default.

Diff for: 08-component/03-state/01-class/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 08-component/03-state/02-state/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 08-component/04-lifecycle/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 09-hooks/02-state/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 09-hooks/03-effect/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 09-hooks/04-memoize/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 09-hooks/05-custom/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 10-routing/04-react-router-5/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 10-routing/05-react-router-6/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 11-redux/02-redux/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 11-redux/04-toolkit/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 11-redux/05-use-reducer/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 12-async/01-middleware/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 12-async/02-effect-hook/01-state-hook/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 12-async/02-effect-hook/02-redux/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 12-async/03-alt-redux/01-context/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 13-suspense/02-ready-libs/01-swr/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 13-suspense/02-ready-libs/02-react-query/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

Diff for: 13-suspense/04-ux/.eslintrc.js

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ module.exports = {
1313
'plugin:@typescript-eslint/recommended',
1414
'plugin:@typescript-eslint/recommended-requiring-type-checking',
1515
'prettier',
16-
'prettier/@typescript-eslint',
17-
'prettier/react',
1816
],
1917
parser: '@typescript-eslint/parser',
2018
parserOptions: {

0 commit comments

Comments
 (0)