2.2.3 • Published 7 months ago

@radoslawgrochowski/eslint-config v2.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@radoslawgrochowski/eslint-config

Default Eslint configuration for my projects.

Quick start

  1. Install package and dependencies using your favorite manager
$ pnpm i -D @radoslawgrochowski/eslint-config eslint prettier
  1. Setup eslint.config.mjs:
// @ts-check
import config from '@radoslawgrochowski/eslint-config'
// import react from "@radoslawgrochowski/eslint-config/react";

export default [
  // add project rules first
  { ignores: ['**/.next'] },

  // use default setup
  ...config,
  // or use explicit import just for specific ruleset:
  // ...react,
]
  1. Update package.json's scripts:
{
  "scripts": {
    "lint": "eslint . --report-unused-disable-directives --max-warnings 0",
    "lint:fix": "pnpm lint --fix"
  }
}
  1. Setup CI

See this project's lint workflow as an example. Don't forget to set up "Require status checks to pass before merging".