From e56ce36d9dc4681fbd312fc1a43501fc6bb79ba0 Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Wed, 7 Dec 2016 15:27:48 +0100 Subject: [PATCH] Include tslint.json --- .gitignore | 4 ++-- src/extractor.ts | 2 +- tslint.json | 52 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 tslint.json diff --git a/.gitignore b/.gitignore index ed7beea..2e0f323 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,8 @@ npm-debug.log* dist # Extracted strings -*.json -*.pot +template.json +template.pot # Dependency directory node_modules diff --git a/src/extractor.ts b/src/extractor.ts index db8bcdb..218c870 100644 --- a/src/extractor.ts +++ b/src/extractor.ts @@ -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'; diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..56a49f0 --- /dev/null +++ b/tslint.json @@ -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" + ] + } +}