Skip to content

Commit

Permalink
chore: bump packages and add tslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Feb 28, 2017
1 parent 6779f2b commit fa1fad5
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 141 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -18,7 +18,7 @@
"prebuild": "npm run cleanup && npm run verify",
"build": " tsc && tsc -p tsconfig.es6.json && webpack",
"test": "echo \"Error: no test specified\" && exit 0",
"ts:lint": "tslint \"src/**/*.tsx\" \"src/**/*.ts\"",
"ts:lint": "tslint --project tsconfig.json --type-check \"src/**/*.tsx\" \"src/**/*.ts\"",
"ts:lint:fix": "npm run ts:lint -- --fix",
"ts:format": "tsfmt --verify",
"ts:format:fix": "tsfmt -r",
Expand Down Expand Up @@ -53,10 +53,10 @@
"irish-pub": "0.2.0",
"shx": "0.2.2",
"standard-version": "4.0.0",
"tslint": "4.4.2",
"tslint": "4.5.0",
"tslint-react": "2.4.0",
"typescript": "2.2.1",
"typescript-formatter": "4.1.2",
"typescript-formatter": "5.0.1",
"validate-commit-msg": "2.11.1",
"webpack": "2.2.1"
}
Expand Down
63 changes: 57 additions & 6 deletions tslint.json
@@ -1,5 +1,7 @@
{
"extends": ["tslint-react"],
"extends": [
"tslint-react"
],
"rules": {
"jsx-no-lambda": true,
"jsx-alignment": true,
Expand All @@ -8,13 +10,14 @@
"jsx-no-multiline-js": false,
"jsx-curly-spacing": false,
"jsx-wrap-multiline": false,

"arrow-parens": true,
"class-name": true,
"comment-format": [
true,
"check-space"
],
"use-isnan": true,
"await-promise": true,
"curly": true,
"eofline": true,
"forin": true,
Expand All @@ -23,6 +26,10 @@
"spaces"
],
"label-position": true,
"linebreak-style":[
true,
"LF"
],
"max-line-length": [
true,
120
Expand All @@ -49,6 +56,17 @@
true
],
"no-trailing-whitespace": true,
"no-consecutive-blank-lines": [
true
],
"no-inferrable-types": [
true
],
"no-unnecessary-initializer": true,
"no-magic-numbers": true,
"no-require-imports": true,
"no-duplicate-super": true,
"no-boolean-literal-compare": true,
"no-unused-expression": true,
"no-use-before-declare": false,
"no-var-keyword": true,
Expand All @@ -65,7 +83,6 @@
"always",
"ignore-interfaces"
],

"triple-equals": [
true,
"allow-null-check"
Expand Down Expand Up @@ -138,11 +155,45 @@
"check-function-in-method"
],
"import-spacing": true,
"ordered-imports": [true],
"interface-name": [false],
"ordered-imports": [
true
],
"interface-name": [
false
],
"no-angle-bracket-type-assertion": true,
"newline-before-return": true,
"object-literal-shorthand": true,
"typeof-compare": true,
"arrow-return-shorthand": [true]
"arrow-return-shorthand": [
true
],
"unified-signatures": true,
"prefer-for-of": true,
"match-default-export-name": true,
"prefer-const": true,
"ban-types": [
true,
[
"Object",
"Use '{}' instead."
],
[
"String",
"Use 'string' instead."
],
[
"Number",
"Use 'number' instead."
],
[
"Array",
"Use 'type[]' instead."
],
[
"Boolean",
"Use 'boolean' instead."
]
]
}
}

0 comments on commit fa1fad5

Please sign in to comment.