A set of recommended eslint rules for typescript projects
npm install --dev @suncin/eslint-config-typescript
Then extends your eslint file (edit .eslintrc.json
)
{
"extends": ["@suncin/typescript"]
}
Other configs
{
"extends": [
"@suncin/typescript",
"@suncin/typescript/security",
"@suncin/typescript/jest"
"@suncin/typescript/all"
]
}
Note: @suncin/typescript/all
include @suncin/typescript/security
and @suncin/typescript/jest
configs.
{
"extends": ["@suncin/typescript/all"],
"plugins": ["filenames"],
"env": {
"node": true
},
"rules": {
"filenames/no-index": "error",
"filenames/match-exported": ["error", "kebab"]
}
}
npm test
👤 Jaime Leonardo Suncin Cruz
- Website: https://suncin.me
- Twitter: @jl_suncin
- Github: @leosuncin
- LinkedIn: @jaimesuncin
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2020 Jaime Leonardo Suncin Cruz.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator