Skip to content

Instantly share code, notes, and snippets.

@tristan-mastrodicasa
Last active April 5, 2020 03:50
Show Gist options
  • Save tristan-mastrodicasa/ee9835f3056245f38a74f7f0c7e88fc0 to your computer and use it in GitHub Desktop.
Save tristan-mastrodicasa/ee9835f3056245f38a74f7f0c7e88fc0 to your computer and use it in GitHub Desktop.
An opiniated tslint configuration
{
"extends": ["./tslint.microsoft.json", "tslint-config-airbnb"],
"rules": {
"completed-docs": [
true,
{
"enums": true,
"methods": true,
"interface": true
}
],
"max-line-length": [
false,
100
],
"variable-name": {
"options": [
"allow-leading-underscore"
]
},
"member-ordering": [
true,
{
"order": [
"static-field",
"instance-field",
"constructor",
"static-method",
"instance-method"
]
}
],
"member-access": true,
"no-shadowed-variable": false,
"interface-name": true,
"trailing-comma": [true, {"multiline": "always", "singleline": "never"}]
}
}
{
"rulesDirectory": ["./node_modules/tslint-microsoft-contrib"],
"rules": {
"no-relative-imports": [true, "allow-siblings"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment