mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
- 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~
51 lines
1.5 KiB
JavaScript
51 lines
1.5 KiB
JavaScript
module.exports = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
rules: {
|
|
'type-enum': [
|
|
2,
|
|
'always',
|
|
[
|
|
'feat', // new feature
|
|
'fix', // bug fix
|
|
'docs', // documentation update
|
|
'style', // code formatting, no logic changes
|
|
'refactor', // code refactoring
|
|
'perf', // performance optimization
|
|
'test', // add tests
|
|
'chore', // build process or auxiliary tool changes
|
|
'ci', // CI/CD related changes
|
|
'build', // build system or external dependency changes
|
|
'revert' // revert commit
|
|
]
|
|
],
|
|
'scope-enum': [
|
|
2,
|
|
'always',
|
|
[
|
|
'search', // search functionality
|
|
'theme', // theme related
|
|
'css', // style files
|
|
'js', // JavaScript files
|
|
'content', // content files
|
|
'build', // build related
|
|
'deps', // dependency updates
|
|
'config', // configuration files
|
|
'docs', // documentation
|
|
'layout', // layout templates
|
|
'widget', // components
|
|
'gulp', // Gulp tasks
|
|
'hexo', // Hexo related
|
|
'markdown', // Markdown processing
|
|
'seo', // SEO optimization
|
|
'a11y', // accessibility
|
|
'perf' // performance related
|
|
]
|
|
],
|
|
'subject-case': [2, 'never', ['start-case', 'pascal-case', 'upper-case']],
|
|
'subject-empty': [2, 'never'],
|
|
'subject-full-stop': [2, 'never', '.'],
|
|
'type-case': [2, 'always', 'lower-case'],
|
|
'type-empty': [2, 'never']
|
|
}
|
|
};
|