Skip to content

Instantly share code, notes, and snippets.

@riker09
Created August 15, 2018 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riker09/9aa0c66d1af50ce750250e94a5f551d1 to your computer and use it in GitHub Desktop.
Save riker09/9aa0c66d1af50ce750250e94a5f551d1 to your computer and use it in GitHub Desktop.
Merifond TypeScript configuration
{
"name": "my.package.name",
"version": "1.0.0",
"license": "ISC",
"description": "",
"scripts": {
"lint": "tslint --exclude **/*.d.ts -t verbose src/**/*.ts",
"lint-fix": "tslint --exclude **/*.d.ts -t verbose --fix src/**/*.ts"
},
"dependencies": {
},
"devDependencies": {
"husky": "^1.0.0-rc.13",
"lint-staged": "^7.2.0"
},
"lint-staged": {
"*.ts": [
"tslint --exclude **/*.d.ts src/**/*.ts",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "lint-staged"
}
}
}
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended"
],
"jsRules": {},
"rules": {
"indent": [true, "spaces", 4],
"max-line-length": {
"severity": "warning",
"options": {"limit": 120, "ignore-pattern": "^import |^export {(.*?)}"}
},
"member-ordering": {
"severity": "none",
"options": { "order": "statics-first"}
},
"no-consecutive-blank-lines": [true, 2],
"no-empty-interface": {
"severity": "warn"
},
"no-string-literal": false,
"no-unused-expression": [true, "allow-fast-null-checks"],
"no-var-requires": false,
"object-literal-key-quotes": [true, "consistent"],
"object-literal-sort-keys": false,
"ordered-imports": [true, {"import-sources-order": "lowercase-last", "named-imports-order": "lowercase-first"}],
"quotemark": [true, "single", "avoid-template", "avaid-escape"],
"trailing-comma": {
"options": {
"multiline": {
"arrays": "always",
"objects": "always",
"functions": "never",
"typeLiterals": "ignore"
},
"singleline": "never"
}
},
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
]
},
"rulesDirectory": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment