Include tslint.json

This commit is contained in:
Kim Biesbjerg 2016-12-07 15:27:48 +01:00
parent 0cf47344a1
commit e56ce36d9d
3 changed files with 55 additions and 3 deletions

4
.gitignore vendored
View File

@ -10,8 +10,8 @@ npm-debug.log*
dist
# Extracted strings
*.json
*.pot
template.json
template.pot
# Dependency directory
node_modules

View File

@ -1,6 +1,6 @@
import { ParserInterface } from './parsers/parser.interface';
import { PipeParser } from './parsers/pipe.parser';
import { DirectiveParser } from "./parsers/directive.parser";
import { DirectiveParser } from './parsers/directive.parser';
import { ServiceParser } from './parsers/service.parser';
import { SerializerInterface } from './serializers/serializer.interface';

52
tslint.json Normal file
View File

@ -0,0 +1,52 @@
{
"rulesDirectory": [
"node_modules/tslint-eslint-rules/dist/rules"
],
"rules": {
"indent": [true, "tabs"],
"semicolon": [true, "always", "ignore-interfaces"],
"quotemark": [true, "single", "avoid-escape"],
"no-duplicate-variable": true,
"member-access": true,
"member-ordering": [
true,
{
"order": [
"public-static-field",
"public-static-method",
"protected-static-field",
"protected-static-method",
"private-static-field",
"private-static-method",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"constructor",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
],
"curly": true,
"eofline": true,
"no-trailing-whitespace": true,
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-typecast"
]
}
}