Freedom Evenden's website logo

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

  1. Sensible defaults
  2. Supports prettier
  3. Uses ESLint Flat Config
  4. Built in configurations:
    1. TypeScript
    2. Prettier
    3. Unocss
    4. Vue
    5. Recommend ESLint JavaScript config

Inspired by antfu/eslint-config

Installation

Notes: requires eslint

  1. npm
npm i @f3ve/eslint-config
  1. pnpm
pnpm add @f3ve/eslint-config
  1. 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

See Options type definition

Example

import f3ve from '@f3ve/eslint/config';

export default f3ve({
    prettier: true,
    vue: true,
    typescript: true,
    browser: true,
  }),

Contributing

Please refer to Contributing

License

MIT