The ESLint configuration for TypeScript.
Install the library:
npm i -D @sylvanas-cry/eslint-config
Install peer dependencies:
npm i -D \
eslint \
eslint-plugin-import \
eslint-plugin-simple-import-sort \
@typescript-eslint/parser \
@typescript-eslint/eslint-plugin
Create file named .eslintrc
at the root of your project:
{
"extends": "@sylvanas-cry/eslint-config"
}
You can override rules this way:
{
"extends": "@sylvanas-cry/eslint-config",
"rules": {
"no-console": "off"
}
}
The scripts and documentation in this project are released under the MIT License.