Skip to content

Instantly share code, notes, and snippets.

@andrewborisov
Last active May 14, 2019 09:54
Show Gist options
  • Save andrewborisov/b985d77294c219dbe82e11db8aa5e01f to your computer and use it in GitHub Desktop.
Save andrewborisov/b985d77294c219dbe82e11db8aa5e01f to your computer and use it in GitHub Desktop.
creating-ts-lint-rule project
{
"extends": "tslint:recommended",
"rulesDirectory": ["custom-ts-rules"],
"linterOption": {
"exclude": [
"src/*.js",
"src/*.js.map"
]
},
"rules": {
"max-line-length": [true, 120],
"triple-equals": true,
"linebreak-style": [true, "LF"],
"semicolon": true,
"ordered-imports": false,
"quotemark": [true, "single"],
"no-trailing-whitespace": true,
"object-literal-sort-keys": false,
"max-classes-per-file": [false],
"module-imports-order": [true, [
"node_modules", "@/utils/", "@/modules/", "@/components/", "dot-notation", "extensions"
]]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment