[Maintenance] Update ESLint configuration with additional rules #524
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.
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
eslint/js
: https://eslint.org/docs/latest/rules/ (all rules without checkmark icons)eslint-plugin-vue
: https://eslint.vuejs.org/rules/#uncategorized and https://eslint.vuejs.org/rules/#extension-rulesvuejs/eslint-config-typescript
: https://github.com/vuejs/eslint-config-typescript#readme (stylistic rules and typechecked rules)We should investigate which rules are useful and enable them by default.
Desired solution
Goal of this issue is to separate the ESLint configuration into:
eslint.config.recommended.js
) with all recommended rule presets from the used pluginseslint.config.extended.js
) with additional rule presets from the used plugins and more rules of those plugins which are not enabled by defaultMake 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:
No duplicate
Code of Conduct
The text was updated successfully, but these errors were encountered: