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

[Maintenance] Update ESLint configuration with additional rules #524

Open
2 of 5 tasks
devtobi opened this issue Nov 15, 2024 · 0 comments
Open
2 of 5 tasks

[Maintenance] Update ESLint configuration with additional rules #524

devtobi opened this issue Nov 15, 2024 · 0 comments
Labels
Priority: Low The issue contains work with low priority. Template: Frontend Issues regarding the frontend template. Template: Webcomponent Issues regarding the webcomponent template. Type: Maintenance The issue contains maintenance work.

Comments

@devtobi
Copy link
Member

devtobi commented Nov 15, 2024

Relevant template

refarch-frontend, refarch-webcomponent

Problem description (optional)

We are currently only using the recommended preset by ESLint and the included plugins. To improve code readability and structure and to provide good suggestions for coding patterns we want to extend this.
There are a lot of useful rules which are not enabled by default, e.g

Desired solution

Goal of this issue is to separate the ESLint configuration into:

  • a base configuration (e.g. eslint.config.recommended.js) with all recommended rule presets from the used plugins
  • an extended configuration (e.g. eslint.config.extended.js) with additional rule presets from the used plugins and more rules of those plugins which are not enabled by default
    Make use of the extends mechanism of ESLint to avoid duplicate code in rule definition.

Considered alternatives (optional)

Additional context (optional)

TODO-List for investigation of rules:

  • eslint/js
  • eslint-plugin-vue
  • vuejs/eslint-config-typescript

No duplicate

  • I confirm that this issue is not a duplicate

Code of Conduct

  • I agree to follow this project's Code of Conduct
@devtobi devtobi added Template: Webcomponent Issues regarding the webcomponent template. Template: Frontend Issues regarding the frontend template. Type: Maintenance The issue contains maintenance work. Priority: Medium The issue contains work with medium priority. labels Nov 15, 2024
@devtobi devtobi moved this from Open to Accepted in it@M RefArch Templates Nov 20, 2024
@devtobi devtobi added Priority: Low The issue contains work with low priority. and removed Priority: Medium The issue contains work with medium priority. labels Nov 20, 2024
@devtobi devtobi changed the title [Maintenance] Update ESLint configuration with uncategorized rules [Maintenance] Update ESLint configuration with additional rules Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low The issue contains work with low priority. Template: Frontend Issues regarding the frontend template. Template: Webcomponent Issues regarding the webcomponent template. Type: Maintenance The issue contains maintenance work.
Projects
Status: Accepted
Development

No branches or pull requests

1 participant