My custom flavoured config for ESLint based on my standard TSLint configuration.
npm install -D @ionaru/eslint-config eslint @typescript-eslint/eslint-plugin eslint-plugin-import eslint-plugin-prefer-arrow eslint-plugin-sonarjs eslint-plugin-unicorn
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",
...
},
...