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~
43 lines
700 B
JavaScript
43 lines
700 B
JavaScript
module.exports = {
|
|
// Basic configuration
|
|
semi: true,
|
|
trailingComma: 'none',
|
|
singleQuote: true,
|
|
printWidth: 100,
|
|
tabWidth: 2,
|
|
useTabs: false,
|
|
endOfLine: 'lf',
|
|
|
|
// Plugin configuration
|
|
plugins: ['prettier-plugin-tailwindcss'],
|
|
|
|
// File-specific configuration
|
|
overrides: [
|
|
{
|
|
files: '*.md',
|
|
options: {
|
|
proseWrap: 'preserve',
|
|
printWidth: 80
|
|
}
|
|
},
|
|
{
|
|
files: '*.yml',
|
|
options: {
|
|
singleQuote: false
|
|
}
|
|
},
|
|
{
|
|
files: '*.json',
|
|
options: {
|
|
trailingComma: 'none'
|
|
}
|
|
},
|
|
{
|
|
files: ['themes/coo/source/css/*.css'],
|
|
options: {
|
|
printWidth: 120
|
|
}
|
|
}
|
|
]
|
|
};
|