hyoban / eslint-config-hyoban

Hyoban's ESLint config preset
https://eslint-config-hyoban.vercel.app
MIT License
31 stars 1 forks source link

Rules to change in preset #58

Open hyoban opened 3 months ago

hyoban commented 3 months ago

Describe the bug

Reproduction

No response

System Info

System:
    OS: macOS 15.0
    CPU: (8) arm64 Apple M1 Pro
    Memory: 417.61 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.16.0 - ~/.n/bin/node
    Yarn: 1.22.19 - ~/.n/bin/yarn
    npm: 10.8.1 - ~/.n/bin/npm
    pnpm: 9.7.0 - ~/.n/bin/pnpm
    Watchman: 2024.08.05.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 127.0.6533.100
    Safari: 18.0

Used Package Manager

pnpm

Validations

hyoban commented 2 months ago

Change quotes to '@stylistic/quotes': ['error', 'single', { allowTemplateLiterals: true, avoidEscape: true }]

Because it will change

"has-[[data-state='active']]:bg-secondary has-[[data-state='active']]:text-secondary-foreground"

to

'has-[[data-state=\'active\']]:bg-secondary has-[[data-state=\'active\']]:text-secondary-foreground'