Skip to content

Commit

Permalink
chore(config): update compiler, lint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Jan 4, 2017
1 parent 71ab9db commit fe23b8b
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 35 deletions.
35 changes: 0 additions & 35 deletions index.d.ts

This file was deleted.

30 changes: 30 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"compilerOptions": {
"removeComments": false,
"preserveConstEnums": true,
"sourceMap": true,
"declaration": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"suppressImplicitAnyIndexErrors": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"noImplicitThis": true,
"noUnusedParameters": true,
"module": "commonjs",
"moduleResolution": "node",
"pretty": true,
"target": "es5",
"outDir": "distribution"
},
"formatCodeOptions": {
"indentSize": 2,
"tabSize": 2
},
"exclude": [
"node_modules",
"source/**/fixtures/*",
"source/**/_tests/*",
"distribution"
]
}
40 changes: 40 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"rules": {
"curly": true,
"eofline": false,
"align": [true, "parameters"],
"class-name": true,
"indent": [true, "spaces"],
"max-line-length": [true, 150],
"no-consecutive-blank-lines": [true],
"no-trailing-whitespace": true,
"no-duplicate-variable": true,
"no-var-keyword": true,
"no-empty": true,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-var-requires": true,
"no-require-imports": true,
"one-line": [true,
"check-else",
"check-whitespace",
"check-open-brace"],
"quotemark": [true,
"single",
"avoid-escape"],
"semicolon": [true, "always"],
"typedef-whitespace": [true, {
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}],
"whitespace": [true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"]
}
}

0 comments on commit fe23b8b

Please sign in to comment.