Skip to content
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

chore(website): configure eslint with docusaurus, react-ts and prettier plugins #858

Merged
merged 9 commits into from
Jun 27, 2024

Conversation

MridulDhiman
Copy link
Contributor

Closes #80

πŸ“‘ Description

This PR configures ESLint with Docusaurus, React-TypeScript, and Prettier plugins. It ensures that Prettier plugins do not conflict with the root directory.

βœ… Checks

  • My code requires changes to the documentation
  • I have updated the documentation as required

β„Ή Additional Information

The following changes have been made:

  1. Added ESLint configuration (eslint.config.mjs)
  2. Created .eslintignore and .prettierignore files
  3. Added .prettierrc.mjs for Prettier configuration in the website folder
  4. Updated package.json with new scripts:
    • lint: eslint .
    • lint:fix: eslint --fix .
    • format: prettier --write .
  5. Installed the following dev dependencies:
    • @eslint/js@^9.5.0
    • eslint@^8.57.0
    • eslint-plugin-import@^2.29.1
    • eslint-plugin-prettier@^5.1.3
    • eslint-plugin-react@^7.34.3
    • globals@^15.6.0
    • prettier@^3.3.2
    • @docusaurus/eslint-plugin@^3.4.0
    • typescript-eslint@^7.14.1

@MridulDhiman MridulDhiman requested a review from pmig as a code owner June 25, 2024 13:43
website/eslint.config.mjs Outdated Show resolved Hide resolved
website/.eslintignore Outdated Show resolved Hide resolved
website/.prettierrc.mjs Outdated Show resolved Hide resolved
website/eslint.config.mjs Outdated Show resolved Hide resolved
website/eslint.config.mjs Outdated Show resolved Hide resolved
website/eslint.config.mjs Outdated Show resolved Hide resolved
website/eslint.config.mjs Show resolved Hide resolved
@MridulDhiman MridulDhiman requested a review from kosmoz June 26, 2024 15:08
@kosmoz kosmoz added this pull request to the merge queue Jun 27, 2024
@kosmoz kosmoz removed this pull request from the merge queue due to a manual request Jun 27, 2024
@kosmoz kosmoz changed the title style(website): configure eslint with docusaurus, react-ts and prettier plugins chore(website): configure eslint with docusaurus, react-ts and prettier plugins Jun 27, 2024
@kosmoz kosmoz enabled auto-merge June 27, 2024 08:57
@kosmoz kosmoz added this pull request to the merge queue Jun 27, 2024
Merged via the queue into glasskube:main with commit 613cbb7 Jun 27, 2024
3 checks passed
@MridulDhiman MridulDhiman deleted the issue-80 branch June 27, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure eslint for website
2 participants