ESLint Config
My personal eslint-config. Comes with support for Vue, TypeScript, UnoCSS, and Prettier. Designed for the new ESLint flat config style.
Check out the Repo on Github to learn more!
Features
- Sensible defaults
- Supports prettier
- Uses ESLint Flat Config
- Built in configurations:
- TypeScript
- Prettier
- Unocss
- Vue
- Recommend ESLint JavaScript config
Inspired by antfu/eslint-config
Installation
Notes: requires eslint
- npm
npm i @f3ve/eslint-config
- pnpm
pnpm add @f3ve/eslint-config
- yarn
yarn add @f3ve/eslint-config
Usage
see my websites eslint.config.js file for a working example
Basic, no additional configs
// eslint.config.js
import f3ve from '@f3ve/eslint-config';
export default f3ve(opts);
With additional configs
import f3ve from '@f3ve/eslint/config';
export default [
...f3ve(opts),
/* ... Additional configs ... */
];
Options
Example
import f3ve from '@f3ve/eslint/config';
export default f3ve({
prettier: true,
vue: true,
typescript: true,
browser: true,
}),
Contributing
Please refer to Contributing