-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Problem
Some rules are simple:
- Don't require semantic changes (e.g. renaming a variable or changing declaration context)
- Always work well (e.g. trailing comma never hurts)
- Can be auto-fixed
However, some rules are problematic to apply:
- Require semantic changes
- Make readability worth in some cases
- Require significant manual changes (e.g. rewriting component to TS or renaming components)
- Can be auto-fixed, but with LARGE changes
- Or just too discussable
Examples:
- Shadowing:
- Single-line arrays/objects:
- Top-level function style
- TS-first rules in a mixed environment
- Forced
<script setup lang="ts"> - Forced
<script> - <template> - <style>order in components - Forced multi-word component naming
- Following Vue style guide to have first attribute on a new line (diff safe)
Proposal
Instead of hot discussions, local rule overrides and avoiding "painful" rules, we can provide them in a additional config
Metadata
Metadata
Assignees
Labels
No labels