1.0.2 • Published 2 years ago

@amcef/eslint-config-react v1.0.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

AMCEF Eslint config for React apps (v17+)

Extended Eslint config using prettier and import sort packages plugins

Installation

npm install --save-dev eslint@^8.0.0 @amcef/eslint-config-react

or

yarn add --dev eslint@^8.0.0 @amcef/eslint-config-react

Config is installed together with dependencies (prettier, import sorting plugins)

Update package.json file (example with react config):

{
  "eslintConfig": {
    "extends": [
      "@amcef/eslint-config-react"
    ]
  },
  "scripts": {
    "lint": "eslint \"src/**/*.ts?(x)\"",
    "lint:fix": "eslint --fix \"src/**/*.ts?(x)\""
  }
}