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

Init ESLint #103

Merged
merged 8 commits into from
Dec 26, 2024
Merged

Init ESLint #103

merged 8 commits into from
Dec 26, 2024

Conversation

Splines
Copy link
Member

@Splines Splines commented Dec 26, 2024

In this PR, I set up a proper linting & formatting of our TypeScript code via ESLint and the amazing ESLint Stylistic. Please explore these rules and see the effects for our files as I will open a new PR as follow-up which lints our entire codebase based on the autofixes provided by ESLint. You might have to click on Spaces: 2 in VSCode for linted files (bottom right corner) if it doesn't automatically recognize it.

The linting is mainly such that we have a consistent code style since I don't like to discuss purely stylistic preferences in PRs and want to use the power of ESLint to see if I didn't use variables, didn't conform to normal naming of variables etc.

I also add ESLint to a GitHub Actions pipeline such that in every PR, we get direct feedback here on GitHub (for only the changed files of the PR).

I've also upgraded the npm modules (we only have dev modules).

Tip

You have to run npm install again to fetch the upgraded dependencies. Otherwise, ESLint will probably not work for you.

@Splines Splines self-assigned this Dec 26, 2024
@Splines Splines merged commit 96b3db6 into main Dec 26, 2024
1 check passed
@Splines Splines deleted the lint/eslint branch December 26, 2024 13:56
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.

1 participant