Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.95 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.95 KB

@pilaton/eslint-config-base

npm

The configuration includes basic JS and TS code checks.

Note

Package from the eslint-eco monorepository.
I recommend reading the documentation to understand the whole picture.

Included in the package

  1. ESLint recommended config
  2. eslint-plugin-n — Additional ESLint rules for Node.js
  3. eslint-plugin-import — ES2015+ (ES6+) import/export syntax linting support
  4. eslint-plugin-promise – The best practices for JS/TS promises
  5. eslint-plugin-unicorn — More than 100 powerful ESLint rules
  6. eslint-config-prettier — Turns off all rules that are unnecessary or might conflict with Prettier.
  7. eslint-config-standard — Rules to make your code conform to the general practices of the «JS Standard Code Style»
  8. eslint-config-love — Rules for TypeScript to comply with the «JS Standard Code Style»

Install

npm i @pilaton/eslint-config-base --save-dev

Usage

This configuration is created for the new ESLint Flat Config, and only supports ESM!

eslint.config.js (eslint>=v8.23.1)

import base from '@pilaton/eslint-config-base';

export default [
  ...base,

  {
    // Your config
  },
];