@f3ve/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@f3ve/eslint-config

  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

Readme

Keywords

Package Sidebar

Install

npm i @f3ve/eslint-config

Weekly Downloads

735

Version

2.0.1

License

MIT

Unpacked Size

25.1 MB

Total Files

7

Last publish

Collaborators

  • f3ve