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

1.2.9 • Public • Published

@estjs/eslint-config

Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3.

Features

  • Format with Biome.
  • Designed to work with TypeScript, Vue 2 and 3 out-of-box.
  • Support JSON(5), YAML, Markdown...
  • Sort imports, package.json, tsconfig.json...
  • ESLint Flat config, compose easily!
  • Reasonable defaults, best practices, only one-line of config

Require Node.js >= 16.14.

Usage

import { estjs } from '@estjs/eslint-config';

export default estjs(
 // Features: it'll detect installed dependency and enable necessary features automatically
 {
  biome: true,
  markdown: true,
  vue: true, // auto detection
  unocss: false, // auto detection
 },
 // overrides config
 {
  javascript: {
   'unused-imports/no-unused-imports': 'off',
   'unused-imports/no-unused-vars': 'off',
   'no-console': 'off',
  },
  unicorn: {
   'unicorn/filename-case': 'off',
  },
  imports: {
   'import/no-default-export': 'off',
  },
 },
);

VSCode

{
 "eslint.experimental.useFlatConfig": true
}

Readme

Keywords

none

Package Sidebar

Install

npm i @estjs/eslint-config

Weekly Downloads

270

Version

1.2.9

License

MIT

Unpacked Size

82.5 kB

Total Files

5

Last publish

Collaborators

  • estjs