0.0.17 • Published 5 years ago

@criticalbase/eslint-config v0.0.17

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

@criticalbase/eslint-config

Installation

npm i @criticalbase/eslint-config --save-dev

Usage

On .eslintrc.json file add:

{
  "extends": "@criticalbase/eslint-config"
}

Script in package.json

"scripts": {
  "lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\""
},

Import order with absolute paths

If you have absolute paths, you probably don't want something like components/Button to be considered external:

{
  "extends": "@criticalbase/eslint-config",
  "settings": {
    "import/internal-regex": "^components/|^utils/"
  }
}