- Sensible defaults
- Supports prettier
- Uses ESLint Flat Config
- Built in configurations:
- TypeScript
- Prettier
- Unocss
- Vue
- Recommend ESLint JavaScript config
Inspired by antfu/eslint-config
Notes: requires eslint
- npm
npm i @f3ve/eslint-config
- pnpm
pnpm add @f3ve/eslint-config
- yarn
yarn add @f3ve/eslint-config
see my websites eslint.config.js file for a working example
// eslint.config.js
import f3ve from '@f3ve/eslint-config';
export default f3ve(opts);
import f3ve from '@f3ve/eslint/config';
export default [
...f3ve(opts),
/* ... Additional configs ... */
];
import f3ve from '@f3ve/eslint/config';
export default f3ve({
prettier: true,
vue: true,
typescript: true,
browser: true,
}),
Please refer to Contributing