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

docs: update angular eslint instructions #72

Merged
merged 3 commits into from
Jun 7, 2024
Merged

docs: update angular eslint instructions #72

merged 3 commits into from
Jun 7, 2024

Conversation

sujoy-pal144
Copy link
Contributor

@sujoy-pal144 sujoy-pal144 commented Jun 4, 2024

Updated the angular document as the ESLint configuration options were outdated.

Summary by CodeRabbit

  • Documentation
    • Updated ESLint configuration setup instructions to focus on syntax checking and problem identification without enforcing a code style guide.
    • Added a new script "lint": "ng lint --max-warnings 0" to support linting with Angular CLI.

@sujoy-pal144 sujoy-pal144 self-assigned this Jun 4, 2024
Copy link

coderabbitai bot commented Jun 4, 2024

Walkthrough

The changes in the coding-standards/angular.md file update the ESLint configuration setup instructions. These modifications focus on syntax checking and problem identification, removing the enforcement of a code style guide like Airbnb. Additionally, a new script "lint": "ng lint --max-warnings 0" is added to the project's configuration to support Angular CLI linting.

Changes

File Change Summary
coding-standards/angular.md Updated ESLint configuration instructions to focus on syntax checking and problem identification. Added a new linting script for Angular CLI.

Sequence Diagram(s) (Beta)

Silently ignored as the changes are too simple to warrant a sequence diagram.

Possibly related issues

Poem

In the world of Angular, neat and bright,
Syntax and problems come to light.
No more guides from Airbnb's flight,
Just a script to make linting right.
Code with clarity, free from fright,
For developers' days and nights.
🌟✨🐇


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
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 Configration 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 UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3fab3ce and 03a39ae.

Files selected for processing (1)
  • coding-standards/angular.md (2 hunks)
Additional context used
LanguageTool
coding-standards/angular.md

[uncategorized] ~49-~49: “its” (belonging to it) seems less likely than “it’s” (it is) (AI_HYDRA_LEO_CPT_ITS_ITIS)
Context: ...roject is currently on a lower version, its recommended upgrading it to Angular 13 ...


[grammar] ~74-~74: The plural determiner ‘these’ does not agree with the singular noun ‘typescript’. (THIS_NNS)
Context: ...mport/export) - Frameworks: None of these - Typescript: No (Airbnb does not have support for T...


[uncategorized] ~75-~75: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE)
Context: ...ave support for TS, it is defined for JS and we will add additional TS support for i...


[uncategorized] ~102-~102: You might be missing the article “the” here. (AI_EN_LECTOR_MISSING_DETERMINER_THE)
Context: ...ds) ### Files to be created/modified in root directory To ensure proper setup, add ...


[grammar] ~611-~611: Did you mean “you are”, “yours are” or “your”? (YOUR_RE)
Context: ... is only recommended for the first time your are enforcing prettier rules and want to fo...

Markdownlint
coding-standards/angular.md

23-23: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces


561-561: Expected: 0 or 2; Actual: 3 (MD009, no-trailing-spaces)
Trailing spaces


611-611: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces


530-530: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


23-23: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


28-28: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


36-36: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


52-52: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


62-62: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


102-102: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


584-584: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


70-70: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines


560-560: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

Additional comments not posted (2)
coding-standards/angular.md (2)

72-81: Update ESLint configuration instructions to reflect the removal of Airbnb style guide.

The updated ESLint configuration instructions correctly reflect the removal of the Airbnb style guide, focusing now solely on syntax checking and problem identification. This aligns with the PR's objective to update the document based on outdated ESLint options.

Tools
LanguageTool

[grammar] ~74-~74: The plural determiner ‘these’ does not agree with the singular noun ‘typescript’. (THIS_NNS)
Context: ...mport/export) - Frameworks: None of these - Typescript: No (Airbnb does not have support for T...


[uncategorized] ~75-~75: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE)
Context: ...ave support for TS, it is defined for JS and we will add additional TS support for i...


555-555: Addition of new lint script in package.json.

The addition of "lint": "ng lint --max-warnings 0" to the package.json is a good practice to enforce zero warnings policy in linting, ensuring higher code quality standards.

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

Outside diff range and nitpick comments (1)
coding-standards/angular.md (1)

Line range hint 612-612: Correct grammatical error in the documentation.

- This is only recommended for the first time your are enforcing prettier rules and want to format all your code according to specified rules.
+ This is only recommended for the first time you are enforcing prettier rules and want to format all your code according to specified rules.
Tools
LanguageTool

[grammar] ~74-~74: The plural determiner ‘these’ does not agree with the singular noun ‘typescript’. (THIS_NNS)
Context: ...mport/export) - Frameworks: None of these - Typescript: No (Airbnb does not have support for T...


[uncategorized] ~75-~75: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE)
Context: ...ave support for TS, it is defined for JS and we will add additional TS support for i...

Markdownlint

70-70: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 03a39ae and fc11fa4.

Files selected for processing (1)
  • coding-standards/angular.md (3 hunks)
Additional context used
LanguageTool
coding-standards/angular.md

[grammar] ~74-~74: The plural determiner ‘these’ does not agree with the singular noun ‘typescript’. (THIS_NNS)
Context: ...mport/export) - Frameworks: None of these - Typescript: No (Airbnb does not have support for T...


[uncategorized] ~75-~75: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE)
Context: ...ave support for TS, it is defined for JS and we will add additional TS support for i...


[grammar] ~612-~612: Did you mean “you are”, “yours are” or “your”? (YOUR_RE)
Context: ... is only recommended for the first time your are enforcing prettier rules and want to fo...

Markdownlint
coding-standards/angular.md

23-23: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces


561-561: Expected: 0 or 2; Actual: 4 (MD009, no-trailing-spaces)
Trailing spaces


562-562: Expected: 0 or 2; Actual: 3 (MD009, no-trailing-spaces)
Trailing spaces


612-612: Expected: 0 or 2; Actual: 1 (MD009, no-trailing-spaces)
Trailing spaces


530-530: Expected: 1; Actual: 2 (MD012, no-multiple-blanks)
Multiple consecutive blank lines


23-23: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


28-28: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


36-36: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


52-52: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


62-62: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


102-102: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


585-585: Expected: 1; Actual: 0; Above (MD022, blanks-around-headings)
Headings should be surrounded by blank lines


70-70: null (MD031, blanks-around-fences)
Fenced code blocks should be surrounded by blank lines

Additional comments not posted (2)
coding-standards/angular.md (2)

72-81: Update ESLint configuration to reflect the removal of Airbnb style guide.

The updated ESLint configuration correctly focuses on syntax checking and problem identification, aligning with the PR's objectives to simplify the ESLint setup.

Tools
LanguageTool

[grammar] ~74-~74: The plural determiner ‘these’ does not agree with the singular noun ‘typescript’. (THIS_NNS)
Context: ...mport/export) - Frameworks: None of these - Typescript: No (Airbnb does not have support for T...


[uncategorized] ~75-~75: Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE)
Context: ...ave support for TS, it is defined for JS and we will add additional TS support for i...


Line range hint 546-555: Ensure the new lint script is correctly added to the project configuration.

The addition of "lint": "ng lint --max-warnings 0" to the package.json is a good practice to enforce zero warnings in linting, enhancing code quality.

@xixas xixas changed the title docs: update angular document docs: update angular eslint instructions Jun 7, 2024
@xixas xixas merged commit 8c51aea into main Jun 7, 2024
@xixas xixas deleted the update-angular-doc branch June 7, 2024 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants