feat: improve overall repository state, improve DX#9
Merged
immohammadjaved merged 6 commits intoOct 23, 2025
Conversation
Replace literal @ with the HTML entity (@) in code blocks and package links to avoid directive interpretation. Also apply consistent formatting and indentation across docs templates (cli, dark-mode and component-preview).
Replace direct global window/document access with inject(DOCUMENT).defaultView to support server-side rendering and prevent global window usage. Also normalize string quotes across the file.
Add "flex flex-col" to the accordionItem slot and normalize string quoting/formatting (use double quotes) across the directive file Make accordion items flex column Normalize string quotes to double quotes across files and tidy table variants formatting and imports (removed redundant UiBadge from providers)
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request introduces comprehensive code quality tooling and formatting improvements across the SlateUI repository. The changes focus on establishing consistent code style through Prettier, ESLint, and pre-commit hooks, while also reformatting the entire codebase to match these new standards.
Key Changes:
- Added and configured Prettier, ESLint, Husky, and lint-staged for automated code quality enforcement
- Reformatted all TypeScript, JavaScript, HTML, and CSS files to match new formatting standards
- Updated package.json with new scripts and development dependencies for linting and formatting
Reviewed Changes
Copilot reviewed 156 out of 166 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| Configuration files (.prettierrc, eslint.config.js, lint-staged.config.js) | New tooling configuration for code quality enforcement |
| package.json | Added dev dependencies and scripts for linting/formatting |
| projects/ui/src/directives/*.ts | Formatting updates: quote style, trailing commas, line breaks |
| projects/docs/src/**/*.ts | Formatting updates: quote style, trailing commas, multi-line statements |
| projects/docs/src/**/*.html | Formatting updates: attribute placement, indentation, line breaks |
| projects/docs/src/index.html | Formatting updates: meta tag placement, script formatting |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Member
|
Thanks for the contribution @benjaminforras |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive setup for code quality tooling and improves code formatting consistency across the project. The most significant changes include adding and configuring Prettier, ESLint, Husky, and lint-staged, as well as updating scripts and dependencies in
package.json. Additionally, several files were refactored for improved readability and maintainability, primarily by reformatting code and enhancing logging clarity.Tooling and Configuration
.prettierrcand.prettierignorefiles to configure Prettier formatting rules and specify files/folders to ignore. [1] [2]eslint.config.jswith recommended rules for TypeScript and Angular, integrating Prettier and accessibility checks for templates.lint-staged.config.jsto enforce code linting and formatting on staged files before commits. [1] [2]Dependency Management
package.jsonto add development dependencies for ESLint, Prettier, Angular ESLint, and related plugins, and included new scripts for linting and formatting. [1] [2]Codebase Formatting and Readability
projects/cli/schematics/add/index.ts,projects/cli/schematics/add/rules/add-registry-item.ts,projects/cli/schematics/init/index.ts, and related rules) for improved readability, including consistent indentation, line breaks, and clearer logging messages. [1] [2] [3] [4] [5]Minor Code Improvements
styles.constants.tsto ensure correct object syntax.