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

v0.16.0: Removed the legacy configuration files #91

Merged
merged 4 commits into from
Aug 20, 2024

Conversation

kurone-kito
Copy link
Owner

@kurone-kito kurone-kito commented Aug 20, 2024

⚠️ Breaking changes

  • 2360ac9: (ESLint) Removed the legacy configuration files

Refactor

  • b8d36f6: (ESLint) Specified the type explicitly

Other updates

  • c46a660: Bumped the version to 0.16.0
  • 09cdb78: Updated the dependencies

Summary by CodeRabbit

  • New Features

    • Updated versioning for multiple packages, enhancing functionality and possibly introducing new features.
    • Documentation updates across several packages clarify configuration management and installation instructions.
  • Bug Fixes

    • Version updates to dependencies may resolve existing issues and improve compatibility.
  • Documentation

    • Clarified removal of legacy configurations and installation instructions in the README.md files for several packages.
  • Chores

    • General housekeeping updates, including the removal of .eslintrc.* files and restructuring of dependency management.

@kurone-kito kurone-kito added documentation Improvements or additions to documentation enhancement New feature or request dependencies add, remove, or update the dependencies labels Aug 20, 2024
@kurone-kito kurone-kito self-assigned this Aug 20, 2024
Copy link

coderabbitai bot commented Aug 20, 2024

Walkthrough

The recent changes focus on updating the versioning and structure of various configuration packages. Key modifications include removing legacy configurations, enhancing documentation, and incrementing versions across multiple packages to reflect new releases. Additionally, several dependencies have been updated for improved functionality and compatibility. These updates aim to streamline the development process, ensuring better collaboration and consistency in linting practices across the project.

Changes

File(s) Change Summary
.gitignore Removed exclusion for ESLint configuration files, allowing them to be tracked by Git.
package.json (multiple packages) Updated version from 0.15.0 to 0.16.0 for multiple packages and updated various dependencies for improved functionality.
packages/commitlint-config/package.json Version updated to 0.16.0.
packages/cspell-config/package.json Version updated to 0.16.0.
packages/eslint-config-base/README.md Documentation updated to clarify removal of legacy configuration and version specifications.
packages/eslint-config-base/package.json Version updated to 0.16.0, removed exports, adjusted files, and updated dependencies.
packages/eslint-config-base/src/index.mts Refactored configuration export for improved readability and added documentation.
packages/eslint-config-react/README.md Documentation updated to reflect removal of legacy config and version constraints.
packages/eslint-config-react/package.json Version updated to 0.16.0, dependencies updated, and exports removed.
packages/lint-staged-config/package.json Version updated to 0.16.0.
packages/markdownlint-config/package.json Version updated to 0.16.0.
packages/prettier-config/package.json Version updated to 0.16.0.
packages/typescript-config/package.json Version updated to 0.16.0, updated @typescript-eslint/parser dependency.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant Repository
    participant CI/CD

    Developer->>Repository: Push updates
    Repository->>CI/CD: Trigger build
    CI/CD->>Repository: Install dependencies
    CI/CD->>Repository: Run linting and tests
    CI/CD->>Developer: Notify build success or failure
Loading

🐇 "In the garden of code we play,
With versions updated, hip-hip-hooray!
Configs refined, documentation clear,
Collaboration blooms, let's all cheer!
A hop and a skip, the rabbit doth say,
New features abound, hip-hip-hooray!" 🌼


Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 6fc7538 and c46a660.

Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
Files selected for processing (14)
  • .gitignore (1 hunks)
  • package.json (3 hunks)
  • packages/commitlint-config/package.json (1 hunks)
  • packages/cspell-config/package.json (1 hunks)
  • packages/eslint-config-base/README.md (2 hunks)
  • packages/eslint-config-base/package.json (4 hunks)
  • packages/eslint-config-base/src/index.mts (3 hunks)
  • packages/eslint-config-react/README.md (2 hunks)
  • packages/eslint-config-react/package.json (2 hunks)
  • packages/eslint-config-react/src/index.mts (2 hunks)
  • packages/lint-staged-config/package.json (1 hunks)
  • packages/markdownlint-config/package.json (1 hunks)
  • packages/prettier-config/package.json (1 hunks)
  • packages/typescript-config/package.json (2 hunks)
Files skipped from review due to trivial changes (7)
  • .gitignore
  • packages/commitlint-config/package.json
  • packages/cspell-config/package.json
  • packages/lint-staged-config/package.json
  • packages/markdownlint-config/package.json
  • packages/prettier-config/package.json
  • packages/typescript-config/package.json
Additional comments not posted (23)
packages/eslint-config-react/src/index.mts (4)

2-2: Good practice: Importing types separately.

Importing types separately from @typescript-eslint/utils is a good practice as it enhances type safety and clarity.


8-12: Improved documentation with JSDoc.

Adding a JSDoc comment improves the documentation and provides context for the ESLint configuration. This helps other developers understand the purpose and usage of the configuration.


13-13: Type-safe configuration declaration.

Declaring config with an explicit type TSESLint.FlatConfig.ConfigArray enhances type safety and maintainability. This is a positive change.


25-25: Refactored export statement.

The export statement now exports the config constant, which improves code clarity and allows for potential future modifications to the configuration before export.

packages/eslint-config-base/README.md (2)

24-25: Clarified deprecation status.

The update clearly communicates that the legacy configuration is removed, not just deprecated. This helps users understand that they need to transition to the new configuration format.


31-31: Version-specific installation instructions.

Specifying the exact version for installation ensures users are aware of compatibility and can choose the appropriate version if they prefer the legacy setup.

packages/eslint-config-base/src/index.mts (4)

1-1: Type import for enhanced type safety.

Importing types from @typescript-eslint/utils enhances type safety and clarity, which is a good practice.


13-17: Enhanced documentation with JSDoc.

The addition of JSDoc comments provides valuable context and improves the documentation quality, aiding future maintenance and understanding.


18-18: Refactored configuration declaration.

Using a constant config with an explicit type improves readability and maintainability, allowing for easier future modifications.


37-37: Refactored export statement.

The export statement now exports the config constant, which clarifies the code structure and offers flexibility for future changes.

packages/eslint-config-react/README.md (2)

24-25: Clear communication of legacy removal.

The update clearly indicates that the legacy configuration is removed, providing users with necessary information to transition to the new format.


31-31: Version-specific guidance for installation.

Providing version-specific installation instructions helps users ensure compatibility and choose the correct version if needed.

packages/eslint-config-react/package.json (5)

3-3: Version bump to 0.16.0.

The version update signifies a new release, which is important for tracking changes and updates in the package.


31-31: Updated clean script.

The clean script now removes .eslintrc.json, reflecting changes in configuration file management.


36-49: Updated dependencies for improved functionality.

Updating dependencies ensures compatibility with the latest features and fixes, which is beneficial for maintaining the package's functionality.


56-56: Updated @types/node dependency.

The update to @types/node reflects an effort to keep type definitions current, which is important for TypeScript projects.


65-65: Simplified peerDependencies section.

Retaining only eslint as a peer dependency simplifies compatibility checks and reduces complexity for users.

packages/eslint-config-base/package.json (4)

3-3: Version update to 0.16.0.

The version has been updated to 0.16.0, reflecting a new release. Ensure that this update is consistent with other parts of the project and any related documentation.


Line range hint 35-56: Dependency updates for ESLint plugins and TypeScript.

The dependencies have been updated to newer versions. This is generally beneficial for maintaining compatibility and incorporating bug fixes or improvements. Ensure that these updates do not introduce any breaking changes in your configurations or usage.


65-65: Update to @types/node version.

The @types/node package has been updated to ^22.4.1. This update should be verified for compatibility with the rest of your TypeScript setup.


74-74: Peer dependency specification for ESLint.

The peer dependency for ESLint is specified as >=9.x.x. This ensures compatibility with ESLint versions 9 and above. Verify that this aligns with your intended support for ESLint versions.

package.json (2)

3-3: Version update to 0.16.0.

The version has been updated to 0.16.0, indicating a new release. Ensure this update is consistent with other parts of the project and any related documentation.


Line range hint 55-68: Dependency updates for CSpell and TypeScript ESLint parser.

The dependencies @cspell/cspell-types, @typescript-eslint/parser, and cspell have been updated. These updates should enhance functionality or compatibility. Verify that these updates do not introduce any breaking changes in your configurations or usage.

@kurone-kito kurone-kito merged commit ea03bf7 into main Aug 20, 2024
12 checks passed
@kurone-kito kurone-kito deleted the remove-the-legacy-configuration branch August 20, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies add, remove, or update the dependencies documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant