Include tslint.json
This commit is contained in:
parent
0cf47344a1
commit
e56ce36d9d
4
.gitignore
vendored
4
.gitignore
vendored
@ -10,8 +10,8 @@ npm-debug.log*
|
|||||||
dist
|
dist
|
||||||
|
|
||||||
# Extracted strings
|
# Extracted strings
|
||||||
*.json
|
template.json
|
||||||
*.pot
|
template.pot
|
||||||
|
|
||||||
# Dependency directory
|
# Dependency directory
|
||||||
node_modules
|
node_modules
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { ParserInterface } from './parsers/parser.interface';
|
import { ParserInterface } from './parsers/parser.interface';
|
||||||
import { PipeParser } from './parsers/pipe.parser';
|
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 { ServiceParser } from './parsers/service.parser';
|
||||||
import { SerializerInterface } from './serializers/serializer.interface';
|
import { SerializerInterface } from './serializers/serializer.interface';
|
||||||
|
|
||||||
|
52
tslint.json
Normal file
52
tslint.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user