feat: modernize development toolchain

- Add comprehensive development tooling:
  * ESLint configuration with modern JavaScript rules
  * Prettier for consistent code formatting
  * Husky for Git hooks automation
  * lint-staged for pre-commit checks
  * Conventional Commits with commitlint
  * Stylelint for CSS code quality

- Fix CSS issues:
  * Resolve duplicate selectors in layout_note.css
  * Merge duplicate selectors in layout_list.css
  * Ensure stylelint compliance

- Apply consistent code formatting:
  * Format all JavaScript, CSS, and Markdown files
  * Standardize code style across the project
  * Fix console statement warnings in main.js

- Update project documentation:
  * Enhance README with modern development practices
  * Update package.json with new scripts and dependencies

This modernization establishes a robust development environment with
automated code quality checks, consistent formatting~
This commit is contained in:
Fechin committed 2025-06-18 14:09:17 +08:00
1 parent a2a26f618c
commit 172342c8a3
78 files changed
+14986 -3626

No files matched your search

+7 -7
View File
@@ -1,14 +1,14 @@
hexo.extend.helper.register("request_cheatsheet", function () {
return `https://github.com/Fechin/reference/issues/new?title=Cheatsheet+request%3A+&labels=request&template=cheatsheet-request.md&assignee=Fechin`;
hexo.extend.helper.register('request_cheatsheet', () => {
return 'https://github.com/Fechin/reference/issues/new?title=Cheatsheet+request%3A+&labels=request&template=cheatsheet-request.md&assignee=Fechin';
});
hexo.extend.helper.register("contributing", function () {
return `https://github.com/Fechin/reference`;
hexo.extend.helper.register('contributing', () => {
return 'https://github.com/Fechin/reference';
});
hexo.extend.helper.register("edit_page", function () {
let postPage = this.page["layout"] === "post";
let url = "https://github.com/Fechin/reference";
hexo.extend.helper.register('edit_page', function () {
const postPage = this.page.layout === 'post';
let url = 'https://github.com/Fechin/reference';
if (postPage) {
url += `/blob/main/source/_posts/${this.page.slug}.md`;
}