From c16ceef2c01323475b36cd665c93e2370f3ed849 Mon Sep 17 00:00:00 2001 From: Seungjun Oh Date: Tue, 23 May 2023 15:36:44 +0900 Subject: [PATCH 1/2] edit the title of App.js --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 3784575..ace2c4f 100644 --- a/src/App.js +++ b/src/App.js @@ -7,7 +7,7 @@ function App() {
logo

- Edit src/App.js and save to reload. + This is example page for seminar of CI/CD with GitHub Actions.

Date: Tue, 23 May 2023 20:31:22 +0900 Subject: [PATCH 2/2] format code --- .eslintrc.json | 43 ++++++++++++++++++++---------------------- .prettierrc | 20 ++++++++++---------- README.md | 2 +- package.json | 2 +- src/App.css | 2 +- src/App.js | 17 +++++++++-------- src/reportWebVitals.js | 2 +- 7 files changed, 43 insertions(+), 45 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index c6d0760..8ad7011 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,25 +1,22 @@ { - "env": { - "browser": true, - "es2021": true - }, - "extends": [ - "airbnb", - "plugin:react/recommended", - "plugin:prettier/recommended" - ], - "overrides": [ - ], - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "plugins": [ - "react" - ], - "rules": { - "no-console": "warn", - "react/react-in-jsx-scope": "off", - "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }] - } + "env": { + "browser": true, + "es2021": true + }, + "extends": [ + "airbnb", + "plugin:react/recommended", + "plugin:prettier/recommended" + ], + "overrides": [], + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module" + }, + "plugins": ["react"], + "rules": { + "no-console": "warn", + "react/react-in-jsx-scope": "off", + "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }] + } } diff --git a/.prettierrc b/.prettierrc index 59e99c0..d649697 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,11 +1,11 @@ { - "tabWidth": 2, - "semi": true, - "singleQuote": true, - "jsxSingleQuote": true, - "printWidth": 80, - "trailingComma": "none", - "bracketSpacing": true, - "bracketSameLine": false, - "arrowParens": "always" - } \ No newline at end of file + "tabWidth": 2, + "semi": true, + "singleQuote": true, + "jsxSingleQuote": true, + "printWidth": 80, + "trailingComma": "none", + "bracketSpacing": true, + "bracketSameLine": false, + "arrowParens": "always" +} diff --git a/README.md b/README.md index 38da585..1dd0746 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# gdsc-cicd-example \ No newline at end of file +# gdsc-cicd-example diff --git a/package.json b/package.json index ee4cfe1..2285e1c 100644 --- a/package.json +++ b/package.json @@ -41,4 +41,4 @@ "eslint-plugin-react-hooks": "^4.6.0", "prettier": "2.8.8" } -} \ No newline at end of file +} diff --git a/src/App.css b/src/App.css index dcf6d74..10e4996 100644 --- a/src/App.css +++ b/src/App.css @@ -36,4 +36,4 @@ to { transform: rotate(360deg); } -} \ No newline at end of file +} diff --git a/src/App.js b/src/App.js index ace2c4f..66a440c 100644 --- a/src/App.js +++ b/src/App.js @@ -3,17 +3,18 @@ import './App.css'; function App() { return ( -
-
- logo +
+
+ logo

- This is example page for seminar of CI/CD with GitHub Actions. + This is example page for seminar of CI/CD with{' '} + GitHub Actions.

Learn React diff --git a/src/reportWebVitals.js b/src/reportWebVitals.js index 5253d3a..532f29b 100644 --- a/src/reportWebVitals.js +++ b/src/reportWebVitals.js @@ -1,4 +1,4 @@ -const reportWebVitals = onPerfEntry => { +const reportWebVitals = (onPerfEntry) => { if (onPerfEntry && onPerfEntry instanceof Function) { import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { getCLS(onPerfEntry);