@ionaru/eslint-config
v13.5.0
Published
My custom flavoured config for ESLint
Downloads
554
Readme
ESLint-config
Description
My custom flavoured config for ESLint based on my standard TSLint configuration.
Usage
Install
npm install -D @ionaru/eslint-config eslint @typescript-eslint/eslint-plugin eslint-plugin-import eslint-plugin-prefer-arrow eslint-plugin-sonarjs eslint-plugin-unicorn
Configuration
tsconfig.eslint.json example
{
"extends": "./tsconfig.json",
"include": [
"src/**/*.ts"
]
}
.eslintrc.json example
{
"env": {
"es6": true
},
"parserOptions": {
"project": "tsconfig.eslint.json",
"sourceType": "module"
},
"extends": [
"@ionaru"
]
}
package.json example
...
"scripts": {
...
"lint": "eslint --ext ts --max-warnings 0 src",
...
},
...