UNPKG

@amcef/eslint-config-react

Version:

AMCEF ESLint config for React apps (v17+)

34 lines (25 loc) 629 B
# AMCEF Eslint config for React apps (v17+) Extended Eslint config using prettier and import sort packages plugins ## Installation ```sh npm install --save-dev eslint@^8.0.0 @amcef/eslint-config-react ``` or ```sh 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): ```json { "eslintConfig": { "extends": [ "@amcef/eslint-config-react" ] }, "scripts": { "lint": "eslint \"src/**/*.ts?(x)\"", "lint:fix": "eslint --fix \"src/**/*.ts?(x)\"" } } ```