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(lint): Set up ESLint #102

Merged
merged 6 commits into from
Feb 19, 2025
Merged

chore(lint): Set up ESLint #102

merged 6 commits into from
Feb 19, 2025

Conversation

donmccurdy
Copy link
Member

@donmccurdy donmccurdy commented Feb 14, 2025

Adds ESLint v9 and configures a linting check for production and non-production code in the repository. Some of the linter rules are looser than would be ideal (allowing implicit 'any', for example) in order to keep the size of the initial PR a bit more manageable.

@donmccurdy donmccurdy added the dependencies Pull requests that update a dependency file label Feb 14, 2025
@donmccurdy donmccurdy requested a review from a team February 14, 2025 15:54
Copy link
Contributor

@jmgaya jmgaya left a comment

Choose a reason for hiding this comment

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

Great job 💪 !


// TODO: These rules should be re-enabled for all code.
'@typescript-eslint/ban-ts-comment': 'off',
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking out loudly, I think we should start thinking about creating some kind of @carto/eslint-config, because I think codebases should be aligned within these rules, and maintaining only an ESLint Config seems easier, safer, and better, for all of us, WDYT?

Said so, thank you very much for caring about DEV/PROD rules, I think this aligns pretty well with the mess in cloud-native where we disable the same ESLint rules on every test, great job! ❤️

@donmccurdy donmccurdy merged commit d9fb7d4 into main Feb 19, 2025
4 checks passed
@donmccurdy donmccurdy deleted the chore/eslint branch February 19, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up ESLint
2 participants