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

Revisit JS linting #1433

Closed
2 tasks
emteknetnz opened this issue Jan 10, 2023 · 7 comments
Closed
2 tasks

Revisit JS linting #1433

emteknetnz opened this issue Jan 10, 2023 · 7 comments

Comments

@emteknetnz
Copy link
Member

emteknetnz commented Jan 10, 2023

It was decided to suppress new JS linting issues before the CMS 5 beta in this issue as it was causing CI failures when PR's were otherwise fine

We should work out what new rules we wish to keep and re-enable them. See the PRs linked from the above issue for the rules which were suppressed.

Acceptance criteria

  • Each disabled linting rules have been reviewed and a concious decision has been made about whether to keep them or not.
  • JS modules have been updated to pass all linting rules.

When deciding if a rule should be enabled consider

  • Does the rule avoid common pitfalls that are likely to introduce errors in the code?
  • Can the rule be fix with automated linting tools?
  • Is the rule mostly stylistic and would require a lot of manual work to fix?

PRs

ESLint config

Fixed modules

Update eslint version

@GuySartorelli
Copy link
Member

Related: #1437

@sabina-talipova
Copy link
Contributor

List of eslint rules that using in CMS5.

@sabina-talipova
Copy link
Contributor

As a solution you can use the Prettier to fix some minor eslint issues.

This was referenced Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants