ESLint config based on Airbnb with added prettier integration.
npm i -D @k.sh/eslint-config
oryarn add --dev @k.sh/eslint-config
- Create a
.prettierrc.js
file:
module.exports = require('@k.sh/eslint-config/prettier');
- Update
.eslintrc.json
file:
{
"extends": ["@k.sh/eslint-config"],
"overrides": [
{
"files": ["**/*.ts", "**/*.tsx"],
"extends": ["@k.sh/eslint-config/typescript"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
]
}
- Update
tsconfig.json
file:
{
"extends": "@k.sh/eslint-config/typescript/config.json"
}