1.0.0 • Published 1 year ago

tcfw-eslint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@touchcastllc/eslint-config

Eslint config to use in touchcastllc projects

Usage

Install:

$ yarn add -D @touchcastllc/eslint-config eslint

Add .eslintrc.json file to a repo with following content:

{
  "root": true,
  "extends": ["@touchcastllc/eslint-config"]
}

For React projects use

{
  "root": true,
  "extends": ["@touchcastllc/eslint-config/react"]
}

Overriding some rules

You can use even stricter rules locally

Add .eslint.local.json with stricter rules to your project root and to .gitignore. Put your overrides there, e.g.:

{
  "rules": {
    "unused-imports/no-unused-imports": "error"
  }
}