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)\""
}
}