From d3313af66fc2447278b5c7bbd37381991c6c0424 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 13 Jul 2024 20:04:43 +1000 Subject: [PATCH] gha: pre-commit add more hooks --- .pre-commit-config.yaml | 15 +++++++-------- jsconfig.json | 2 +- next.config.mjs | 2 +- src/app/Education/page.js | 2 +- src/app/globals.css | 2 +- src/components/atoms/Avatar.jsx | 1 - src/components/atoms/Button.jsx | 2 +- src/components/atoms/ButtonCodeBox.jsx | 2 +- src/components/atoms/CircelsBoxCode.jsx | 2 +- src/components/atoms/ImageBoxAdvantage.jsx | 2 +- src/components/atoms/ImageClick.jsx | 2 +- src/components/atoms/Logo.jsx | 2 +- src/components/atoms/LogoWhite.jsx | 2 +- src/components/atoms/TextFooter.jsx | 2 +- src/components/atoms/TextMenu.jsx | 2 +- src/components/atoms/TitleDescription.jsx | 1 - src/components/atoms/TitleDescriptionBox.jsx | 1 - src/components/molecules/BoxStartLanguge.jsx | 2 +- src/components/molecules/CarecterGoToLearn.jsx | 2 +- src/components/molecules/CarectersDownload.jsx | 2 +- src/components/molecules/CarectersHeroMain.jsx | 2 +- src/components/molecules/CarectersNotFound.jsx | 2 +- src/components/molecules/CommentCard.jsx | 1 - src/components/molecules/MenuList.jsx | 2 +- src/components/molecules/MenuListFooter.jsx | 2 +- src/components/organisms/CommentSlide.jsx | 1 - src/components/templates/Footer.jsx | 2 +- src/components/templates/Learn.jsx | 2 +- src/components/templates/NumberBox.jsx | 2 +- 29 files changed, 30 insertions(+), 36 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4a5cf41..9004b03 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,18 +16,17 @@ repos: #- id: check-added-large-files #- id: check-case-conflict #- id: check-executables-have-shebangs - #- id: check-merge-conflict + - id: check-merge-conflict #- id: check-shebang-scripts-are-executable #- id: check-vcs-permalinks #- id: check-yaml #- id: destroyed-symlinks - #- id: detect-aws-credentials - # args: [--allow-missing-credentials] - #- id: detect-private-key - #- id: end-of-file-fixer - # exclude: \.out$ - #- id: fix-byte-order-marker - #- id: forbid-submodules + - id: detect-aws-credentials + args: [--allow-missing-credentials] + - id: detect-private-key + - id: end-of-file-fixer + - id: fix-byte-order-marker + - id: forbid-submodules #- id: mixed-line-ending - id: trailing-whitespace args: [--markdown-linebreak-ext=md] diff --git a/jsconfig.json b/jsconfig.json index babf8fb..abe04df 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -5,4 +5,4 @@ "@/*": ["./src/*"] } } -} \ No newline at end of file +} diff --git a/next.config.mjs b/next.config.mjs index deb22d9..07d7602 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -10,4 +10,4 @@ export default { return config; }, -}; \ No newline at end of file +}; diff --git a/src/app/Education/page.js b/src/app/Education/page.js index 4ea0720..447e251 100644 --- a/src/app/Education/page.js +++ b/src/app/Education/page.js @@ -26,4 +26,4 @@ const Education = () => { ); }; -export default Education; \ No newline at end of file +export default Education; diff --git a/src/app/globals.css b/src/app/globals.css index c6bcb41..5735263 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -31,4 +31,4 @@ } * { font-family: "EstedadThin"; -} \ No newline at end of file +} diff --git a/src/components/atoms/Avatar.jsx b/src/components/atoms/Avatar.jsx index 89924cb..8bb59b8 100644 --- a/src/components/atoms/Avatar.jsx +++ b/src/components/atoms/Avatar.jsx @@ -10,4 +10,3 @@ const Avatar = ({ src, alt, width, height }) => { }; export default Avatar; - diff --git a/src/components/atoms/Button.jsx b/src/components/atoms/Button.jsx index a6ac1b2..31e8f04 100644 --- a/src/components/atoms/Button.jsx +++ b/src/components/atoms/Button.jsx @@ -48,4 +48,4 @@ const Button = ({ text, variant, icon, padding, borderRadius, type, href, classN } }; -export default Button; \ No newline at end of file +export default Button; diff --git a/src/components/atoms/ButtonCodeBox.jsx b/src/components/atoms/ButtonCodeBox.jsx index a5cbb7f..9d11ffe 100644 --- a/src/components/atoms/ButtonCodeBox.jsx +++ b/src/components/atoms/ButtonCodeBox.jsx @@ -8,4 +8,4 @@ function ButtonCodeBox({ icon }) { ) } -export default ButtonCodeBox \ No newline at end of file +export default ButtonCodeBox diff --git a/src/components/atoms/CircelsBoxCode.jsx b/src/components/atoms/CircelsBoxCode.jsx index 7845a65..40e6111 100644 --- a/src/components/atoms/CircelsBoxCode.jsx +++ b/src/components/atoms/CircelsBoxCode.jsx @@ -10,4 +10,4 @@ function CircelsBoxCode() { ) } -export default CircelsBoxCode \ No newline at end of file +export default CircelsBoxCode diff --git a/src/components/atoms/ImageBoxAdvantage.jsx b/src/components/atoms/ImageBoxAdvantage.jsx index 0a25166..7359b81 100644 --- a/src/components/atoms/ImageBoxAdvantage.jsx +++ b/src/components/atoms/ImageBoxAdvantage.jsx @@ -42,4 +42,4 @@ function ImageBoxAdvantage({ variant }) { ) } -export default ImageBoxAdvantage \ No newline at end of file +export default ImageBoxAdvantage diff --git a/src/components/atoms/ImageClick.jsx b/src/components/atoms/ImageClick.jsx index daf9181..2ca2b59 100644 --- a/src/components/atoms/ImageClick.jsx +++ b/src/components/atoms/ImageClick.jsx @@ -21,4 +21,4 @@ function ImageClick() { ) } -export default ImageClick \ No newline at end of file +export default ImageClick diff --git a/src/components/atoms/Logo.jsx b/src/components/atoms/Logo.jsx index 26ba90b..dea7e93 100644 --- a/src/components/atoms/Logo.jsx +++ b/src/components/atoms/Logo.jsx @@ -16,4 +16,4 @@ function Logo() { ) } -export default Logo \ No newline at end of file +export default Logo diff --git a/src/components/atoms/LogoWhite.jsx b/src/components/atoms/LogoWhite.jsx index 199203e..f5156fd 100644 --- a/src/components/atoms/LogoWhite.jsx +++ b/src/components/atoms/LogoWhite.jsx @@ -16,4 +16,4 @@ function LogoWhite() { ) } -export default LogoWhite \ No newline at end of file +export default LogoWhite diff --git a/src/components/atoms/TextFooter.jsx b/src/components/atoms/TextFooter.jsx index a78280c..c559eea 100644 --- a/src/components/atoms/TextFooter.jsx +++ b/src/components/atoms/TextFooter.jsx @@ -6,4 +6,4 @@ function TextFooter() { ) } -export default TextFooter \ No newline at end of file +export default TextFooter diff --git a/src/components/atoms/TextMenu.jsx b/src/components/atoms/TextMenu.jsx index 454ba56..8e17eff 100644 --- a/src/components/atoms/TextMenu.jsx +++ b/src/components/atoms/TextMenu.jsx @@ -6,4 +6,4 @@ function TextMenu({ text }) { ) } -export default TextMenu \ No newline at end of file +export default TextMenu diff --git a/src/components/atoms/TitleDescription.jsx b/src/components/atoms/TitleDescription.jsx index 59c8888..4b28e7b 100644 --- a/src/components/atoms/TitleDescription.jsx +++ b/src/components/atoms/TitleDescription.jsx @@ -11,4 +11,3 @@ const TitleDescription = ({ title, description }) => { }; export default TitleDescription; - diff --git a/src/components/atoms/TitleDescriptionBox.jsx b/src/components/atoms/TitleDescriptionBox.jsx index 429bf82..c06c38c 100644 --- a/src/components/atoms/TitleDescriptionBox.jsx +++ b/src/components/atoms/TitleDescriptionBox.jsx @@ -11,4 +11,3 @@ const TitleDescriptionBox = ({ title, description }) => { }; export default TitleDescriptionBox; - diff --git a/src/components/molecules/BoxStartLanguge.jsx b/src/components/molecules/BoxStartLanguge.jsx index ea9a84a..03c623b 100644 --- a/src/components/molecules/BoxStartLanguge.jsx +++ b/src/components/molecules/BoxStartLanguge.jsx @@ -23,4 +23,4 @@ function BoxStartLanguge() { ) } -export default BoxStartLanguge \ No newline at end of file +export default BoxStartLanguge diff --git a/src/components/molecules/CarecterGoToLearn.jsx b/src/components/molecules/CarecterGoToLearn.jsx index fd61a58..7239e77 100644 --- a/src/components/molecules/CarecterGoToLearn.jsx +++ b/src/components/molecules/CarecterGoToLearn.jsx @@ -23,4 +23,4 @@ function CarecterGoToLearn() { ) } -export default CarecterGoToLearn \ No newline at end of file +export default CarecterGoToLearn diff --git a/src/components/molecules/CarectersDownload.jsx b/src/components/molecules/CarectersDownload.jsx index f8b5364..256ca5b 100644 --- a/src/components/molecules/CarectersDownload.jsx +++ b/src/components/molecules/CarectersDownload.jsx @@ -21,4 +21,4 @@ function CarectersDownload() { ) } -export default CarectersDownload \ No newline at end of file +export default CarectersDownload diff --git a/src/components/molecules/CarectersHeroMain.jsx b/src/components/molecules/CarectersHeroMain.jsx index 9d8ff98..2086c17 100644 --- a/src/components/molecules/CarectersHeroMain.jsx +++ b/src/components/molecules/CarectersHeroMain.jsx @@ -26,4 +26,4 @@ function CarectersHeroMain() { ) } -export default CarectersHeroMain \ No newline at end of file +export default CarectersHeroMain diff --git a/src/components/molecules/CarectersNotFound.jsx b/src/components/molecules/CarectersNotFound.jsx index 231ae74..cefc37a 100644 --- a/src/components/molecules/CarectersNotFound.jsx +++ b/src/components/molecules/CarectersNotFound.jsx @@ -21,4 +21,4 @@ function CarectersNotFound() { ) } -export default CarectersNotFound \ No newline at end of file +export default CarectersNotFound diff --git a/src/components/molecules/CommentCard.jsx b/src/components/molecules/CommentCard.jsx index af67a51..5a9ebf0 100644 --- a/src/components/molecules/CommentCard.jsx +++ b/src/components/molecules/CommentCard.jsx @@ -18,4 +18,3 @@ const CommentCard = ({ comment }) => { }; export default CommentCard; - diff --git a/src/components/molecules/MenuList.jsx b/src/components/molecules/MenuList.jsx index 36a4e9b..9466d09 100644 --- a/src/components/molecules/MenuList.jsx +++ b/src/components/molecules/MenuList.jsx @@ -22,4 +22,4 @@ function MenuList() { ) } -export default MenuList \ No newline at end of file +export default MenuList diff --git a/src/components/molecules/MenuListFooter.jsx b/src/components/molecules/MenuListFooter.jsx index cb82834..713fcde 100644 --- a/src/components/molecules/MenuListFooter.jsx +++ b/src/components/molecules/MenuListFooter.jsx @@ -20,4 +20,4 @@ function MenuListFooter() { ) } -export default MenuListFooter \ No newline at end of file +export default MenuListFooter diff --git a/src/components/organisms/CommentSlide.jsx b/src/components/organisms/CommentSlide.jsx index ceb7c35..d8e7222 100644 --- a/src/components/organisms/CommentSlide.jsx +++ b/src/components/organisms/CommentSlide.jsx @@ -12,4 +12,3 @@ const CommentSlide = ({ comments }) => { }; export default CommentSlide; - diff --git a/src/components/templates/Footer.jsx b/src/components/templates/Footer.jsx index 3324f2d..c06a19f 100644 --- a/src/components/templates/Footer.jsx +++ b/src/components/templates/Footer.jsx @@ -27,4 +27,4 @@ function Footer() { ) } -export default Footer \ No newline at end of file +export default Footer diff --git a/src/components/templates/Learn.jsx b/src/components/templates/Learn.jsx index daa58cd..f6d634a 100644 --- a/src/components/templates/Learn.jsx +++ b/src/components/templates/Learn.jsx @@ -21,4 +21,4 @@ function Learn() { ) } -export default Learn \ No newline at end of file +export default Learn diff --git a/src/components/templates/NumberBox.jsx b/src/components/templates/NumberBox.jsx index d303d6e..6b530a4 100644 --- a/src/components/templates/NumberBox.jsx +++ b/src/components/templates/NumberBox.jsx @@ -9,4 +9,4 @@ function NumberBox() { ) } -export default NumberBox \ No newline at end of file +export default NumberBox