1.6.3 • Published 6 months ago
@flangdev/eslint-config-flang v1.6.3
eslint-config-flang
Installation
Install ESLint (version >= 9):
yarn add --D eslint
Add scripts to package.json
"lint": "eslint ./src --max-warnings=0",
"lintfix": "eslint ./ --fix",
Create file eslint.config.js
with content:
export default [
...eslintFlang.react,
...eslintFlang.fsd, // add if you need rules for FSD
];
Usage
Use next command
yarn run lint
or next command to fix automatically
yarn run lintfix