diff --git a/.editorconfig b/.editorconfig index dad6b582..cf8d7fa6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,4 +8,4 @@ indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true -insert_final_newline = true \ No newline at end of file +insert_final_newline = true diff --git a/.eslintignore b/.eslintignore index 57d00579..b5bec9d9 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,4 @@ assets/js/index.js assets/js/katex.js assets/js/vendor -node_modules \ No newline at end of file +node_modules diff --git a/.eslintrc.json b/.eslintrc.json index c926994d..265d63b7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -28,4 +28,4 @@ } ] } -} \ No newline at end of file +} diff --git a/.gitignore b/.gitignore index 8f187f04..c61bf75d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ public resources # Local Netlify folder .netlify -TODO \ No newline at end of file +TODO diff --git a/.markdownlint.json b/.markdownlint.json index 5879dc35..d71cc4ce 100644 --- a/.markdownlint.json +++ b/.markdownlint.json @@ -6,4 +6,4 @@ "no-duplicate-heading": false, "no-bare-urls": false, "MD029": false -} \ No newline at end of file +} diff --git a/.markdownlintignore b/.markdownlintignore index a0380d65..12c80c89 100644 --- a/.markdownlintignore +++ b/.markdownlintignore @@ -1,3 +1,3 @@ node_modules CHANGELOG.md -README.md \ No newline at end of file +README.md diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..06fb8665 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.5.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: mixed-line-ending + - id: check-added-large-files + args: ["--maxkb=1000"] diff --git a/.stylelintignore b/.stylelintignore index 3972095a..8ee369bd 100644 --- a/.stylelintignore +++ b/.stylelintignore @@ -1,3 +1,3 @@ assets/scss/components/_syntax.scss assets/scss/vendor -node_modules \ No newline at end of file +node_modules diff --git a/.stylelintrc.json b/.stylelintrc.json index 1490802c..715daa45 100644 --- a/.stylelintrc.json +++ b/.stylelintrc.json @@ -31,4 +31,4 @@ } ] } -} \ No newline at end of file +} diff --git a/archetypes/docs.md b/archetypes/docs.md index bb609d26..d2a6282b 100644 --- a/archetypes/docs.md +++ b/archetypes/docs.md @@ -6,7 +6,7 @@ date: {{ .Date }} lastmod: {{ .Date }} draft: true images: [] -menu: +menu: docs: parent: "" weight: 999 diff --git a/babel.config.js b/babel.config.js index ce9c9de0..59472e6c 100644 --- a/babel.config.js +++ b/babel.config.js @@ -14,4 +14,4 @@ module.exports = { } ] ] -}; \ No newline at end of file +}; diff --git a/content/en/docs/help/how-to-contribute.md b/content/en/docs/help/how-to-contribute.md index b7db0c30..14eafc38 100644 --- a/content/en/docs/help/how-to-contribute.md +++ b/content/en/docs/help/how-to-contribute.md @@ -63,3 +63,21 @@ title: "Jonh Doe" draft: false --- ``` + +## Before Commit + +프로젝트에서는 각 글들의 일관성을 위해서 여러 lint를 적용하고 있습니다. +다음 명령어를 실행해 test를 진행합니다. + +pre-commit을 통해 대부분의 test를 통과할 수 있습니다. + +```bash +pip install pre-commit +pre-commit run -a +``` + +pre-commit 후 test를 진행합니다. + +```bash +npm test +``` diff --git a/i18n/en.toml b/i18n/en.toml index cb52685f..962936d8 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,2 +1,2 @@ [get-started] - other = "Get Started" \ No newline at end of file + other = "Get Started" diff --git a/i18n/nl.toml b/i18n/nl.toml index f80323ee..1ddda41c 100644 --- a/i18n/nl.toml +++ b/i18n/nl.toml @@ -1,2 +1,2 @@ [get-started] - other = "Aan de slag" \ No newline at end of file + other = "Aan de slag" diff --git a/layouts/404.html b/layouts/404.html index f1fe6bff..a4f589b1 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -7,4 +7,4 @@