2.0.0 • Published 9 months ago

@radoslawgrochowski/eslint-config v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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";
export default [
  // add project rules
  { ignores: ["**/.next"] },

  ...config,
];
  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".