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

fix(lint): adjust eslint settings and fix warnings #304

Merged
merged 1 commit into from
Feb 19, 2025
Merged

Conversation

chmeyer-ms
Copy link
Contributor

Defaults are coming from eslint:recommended from this section here:

"extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/recommended"
],

With a few changes specific to the Google style guide and our codebase.

The config for naming conventions is mostly a copy of the default here

But with a few adjustments to allow snake_case properties, PascalCase globals, and PascalCase enum members.

Eventually we will turn off explicit-any when our protocol messages are properly typed.

@chmeyer-ms chmeyer-ms self-assigned this Feb 18, 2025
Copy link

@frgarc frgarc left a comment

Choose a reason for hiding this comment

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

It is a great improvement over the whole code👍

"no-throw-literal": "warn",
// turn off base rules as they can report incorrect errors
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }]
Copy link

@frgarc frgarc Feb 19, 2025

Choose a reason for hiding this comment

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

Maybe we can add some others that we have implemented at PE repo:

'unicorn/no-null': ['error', { checkStrictEquality: true }],
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],

@chmeyer-ms chmeyer-ms merged commit be138ee into main Feb 19, 2025
2 checks passed
@chmeyer-ms chmeyer-ms deleted the chmeyer/lint branch February 19, 2025 01:31
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.

2 participants