-
Notifications
You must be signed in to change notification settings - Fork 3k
docs: add eslint #4805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add eslint #4805
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds ESLint configuration to the documentation workspace with the @widlarzgroup/eslint-plugin-docusaurus plugin, along with formatting fixes across multiple TypeScript and CSS files to comply with the newly introduced linting rules.
- Introduces ESLint configuration for the docs workspace with custom Docusaurus plugin for CSS linting
- Updates pre-commit hooks to include CSS linting for documentation files
- Applies comprehensive formatting fixes including quote style consistency, destructuring spacing, and JSX formatting
Reviewed changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
docs/.eslintrc.js |
Adds new ESLint configuration that extends parent config and sets up the Docusaurus plugin with CSS processor |
docs/package.json |
Adds lint script, updates @widlarzgroup/docusaurus-ui to v0.0.3, and adds ESLint dependencies |
lefthook.yml |
Adds lint-docs-css pre-commit hook for CSS files and fixes spacing in types glob pattern |
docs/src/css/custom.css |
Updates comment block with better documentation about the imported package and its purpose |
docs/src/pages/index.tsx |
Applies ESLint formatting fixes: consistent destructuring spacing, proper JSX attribute formatting |
docs/src/components/HomepageFeatures/index.tsx |
Simplifies JSX fragments and applies consistent destructuring spacing |
docs/src/components/PlatformsList/PlatformsList.tsx |
Applies consistent destructuring spacing |
docs/src/components/PlatformsList/PlatformsList.module.css |
Removes commented-out CSS code |
docs/sidebars.ts |
Converts double quotes to single quotes throughout for consistency |
docs/docusaurus.config.ts |
Converts double quotes to single quotes and fixes trailing commas for consistency |
bun.lock |
Updates lock file with new dependencies and version bumps |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
add eslint to docs together with @widlarzgroup/eslint-plugin-docusaurus