Created
August 15, 2018 08:07
-
-
Save riker09/9aa0c66d1af50ce750250e94a5f551d1 to your computer and use it in GitHub Desktop.
Merifond TypeScript configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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