Skip to content

Commit

Permalink
chore: editorconfig ci, husky, lint-staged automation (#8)
Browse files Browse the repository at this point in the history
* chore: update .editorconfig

max_line_length 값을 0에서 10000으로 수정. (max_line_length를 지정하지 않겠다는 뜻.)

* fix: typo linted by editorconfig

editorconfig에 의해 검사된 insert_final_newline 에러 수정.

* fix: typo linted by editorconfig

* chore: edtiorconfig ci, husky, lint-staged  automation

lint-editorconfig를 ci, husky, lint-staged에 등록.
  • Loading branch information
lumirlumir authored Aug 1, 2024
1 parent 0be3c94 commit 74e49e7
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
max_line_length = 0
max_line_length = 10000
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ jobs:
- name: Set up node_modules
run: npm ci

- name: Lint editorconfig
run: npm run lint-editorconfig

- name: Lint markdownlint
run: npm run lint-markdownlint
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"editor.codeActionsOnSave": {
"source.fixAll.markdownlint": "always"
}
}
}
59 changes: 0 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,64 +1,5 @@
# Web_GithubBlog_Data

## Docs Directory Structures

```bash
📦Docs
┣ 📂CSE
┃ ┣ 📂Convention
┃ ┃ ┣ 📂ClangFormat
┃ ┃ ┣ 📂EditorConfig
┃ ┃ ┣ 📂ESLint
┃ ┃ ┣ 📂MarkdownLint
┃ ┃ ┗ 📂Prettier
┃ ┣ 📂CS
┃ ┃ ┣ 📂Algorithm
┃ ┃ ┣ 📂Hardware
┃ ┃ ┣ 📂Linux
┃ ┃ ┣ 📂Network
┃ ┃ ┗ 📂Others
┃ ┣ 📂Data
┃ ┃ ┣ 📂DB
┃ ┃ ┗ 📂Files
┃ ┃ ┃ ┣ 📂JSON
┃ ┃ ┃ ┗ 📂YAML
┃ ┣ 📂Language
┃ ┃ ┣ 📂C Cpp
┃ ┃ ┃ ┣ 📂C
┃ ┃ ┃ ┗ 📂Cpp
┃ ┃ ┣ 📂JavaScript
┃ ┃ ┃ ┣ 📂ECMAScript5
┃ ┃ ┃ ┣ 📂ECMAScript6
┃ ┃ ┃ ┗ 📂React.js
┃ ┃ ┣ 📂MarkUp
┃ ┃ ┃ ┣ 📂HTML
┃ ┃ ┃ ┗ 📂MarkDown
┃ ┃ ┗ 📂StyleSheet
┃ ┃ ┃ ┣ 📂CSS
┃ ┃ ┃ ┗ 📂SCSS
┃ ┣ 📂Misc
┃ ┣ 📂Project
┃ ┃ ┣ 📂SynologyNAS
┃ ┃ ┗ 📂Web_GithubBlog
┃ ┣ 📂PS
┃ ┃ ┣ 📂Baekjoon
┃ ┃ ┗ 📂Programmers
┃ ┣ 📂Tools
┃ ┃ ┣ 📂Git
┃ ┃ ┃ ┣ 📂Github
┃ ┃ ┃ ┣ 📂GithubIssues
┃ ┃ ┃ ┣ 📂GithubWorkflows
┃ ┃ ┃ ┗ 📂Gitkeep
┃ ┃ ┣ 📂Node.js
┃ ┃ ┃ ┣ 📂Dotenv
┃ ┃ ┃ ┣ 📂Node
┃ ┃ ┃ ┣ 📂NPM
┃ ┃ ┃ ┗ 📂WebPack
┃ ┃ ┗ 📂VScode
┗ 📂Music
┃ ┗ 📂Sites
```

## Markdown Personal Convention

- Code 관련 내용: Code Block(<code>`</code> or <code>```</code>)으로 표현.
Expand Down
2 changes: 1 addition & 1 deletion VScode.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"path": "."
}
]
}
}
19 changes: 19 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
"private": true,
"scripts": {
"prepare": "husky",
"lint-editorconfig": "npx editorconfig-checker",
"lint-markdownlint": "npx markdownlint **/*.md"
},
"devDependencies": {
"editorconfig-checker": "^5.1.8",
"husky": "^9.1.3",
"lint-staged": "^15.2.7",
"markdownlint-cli": "^0.41.0"
},
"lint-staged": {
"*": "npm run lint-editorconfig",
"*.md": "npx markdownlint"
}
}

0 comments on commit 74e49e7

Please sign in to comment.