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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(lint): reinstate eslint rules #1327

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Conversation

martylukyy
Copy link
Collaborator

@martylukyy martylukyy commented Dec 30, 2023

After we merged PR #1276 we began with a default .eslintrc.cjs

I looked at some of our old rules from:
https://github.com/autobrr/autobrr/blob/17e97201fdfbe892f9299dcb1333514d1643a06b/web/.eslintrc.js
and migrated the deprecated rules to the new ESLint Stylistic package.
https://eslint.style/

Merging this PR will create quite a few ESLint error and warnings.
Some of those will be resolved in seperate PRs so that we don't end up with a mega PR again.

I listened and took notes to quite a few discussions about our code style in the past times.
These new ESLint rules should solve some the controversial discussions.
If someone wants to discuss changes or further additions - here and now is the time! 馃槃

@martylukyy martylukyy added web dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Dec 30, 2023
substitute single quotes with double quotes in .eslintrc.cjs
# Conflicts:
#	web/package.json
#	web/pnpm-lock.yaml
@martylukyy martylukyy marked this pull request as ready for review January 5, 2024 09:13
@kaiserbh
Copy link
Collaborator

kaiserbh commented Jan 5, 2024

@martylukyy Great work on reinstating the ESLint rules! To further enhance code consistency, have you considered integrating Prettier as well? It could streamline formatting and work alongside ESLint, handling its configurations. This could help in reducing style-related errors and maintaining code readability. Open to discussing how they could best be configured to complement each other!

s0up4200
s0up4200 previously approved these changes Jan 9, 2024
@martylukyy martylukyy added this to the v1.39.0 milestone Feb 18, 2024
@zze0s zze0s modified the milestones: v1.39.0, v1.40.0 Feb 27, 2024
@zze0s zze0s removed this from the v1.40.0 milestone Mar 24, 2024
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 javascript Pull requests that update Javascript code web
Projects
Status: Review
Development

Successfully merging this pull request may close these issues.

None yet

5 participants