Closed thisVioletHydra closed 8 months ago
Generally, you should only need to bring over your rules from your old config, the rest of the boilerplate can be discarded. Example of where to place your custom rules for vue files: https://github.com/lainbo/vite-base-lite/blob/9d5719c5d0e5acfc410e3c6ce908e2174a32cacd/eslint.config.js#L3-L13
Also see this section in the docs about the overrides
key.
More examples here: https://github.com/search?type=code&q=path%3Aeslint.config.js+antfu+%2Ffiles.*vue%2F
its strange
i removed eslint-ts-patch
from my project
i renamed back eslint.config.ts to .JS format
and vue parser now work
i think issue done... 🤔
Describe the bug
Dear @antfu pls help me understand how to conver my old eslint config (vue) to new flat version, I tried using the minimum number of rules, when testing everything works like a diamond, but when testing vue sfc files, eslint catches an error
Parsing error: Unexpected token . eslint
i use SFC script setup +typescript +postcsssee Reproduction repo
old worked conf
new flat
Reproduction
https://github.com/thisVioletHydra/flat-eslint-and-postcss
System Info
Used Package Manager
pnpm
Validations