@f3ve/eslint-config
v2.0.1
Published
Freedom Evenden's ESlint config.
Downloads
2,698
Readme
@f3ve/eslint-config
- 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