Skip to content

Instantly share code, notes, and snippets.

@OlehRovenskyi
Last active August 4, 2017 20:14
Show Gist options
  • Save OlehRovenskyi/afc1ad581a67f16c413957c86b25c6b5 to your computer and use it in GitHub Desktop.
Save OlehRovenskyi/afc1ad581a67f16c413957c86b25c6b5 to your computer and use it in GitHub Desktop.
t
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"noEmit": true,
"noEmitHelpers": true,
"importHelpers": true,
"strictNullChecks": false,
"lib": [
"dom",
"es6"
],
"typeRoots": [
"node_modules/@types"
],
"types": [
"hammerjs",
"jasmine",
"node",
"source-map",
"uglify-js",
"webpack"
]
},
"exclude": [
"node_modules",
"dist"
],
"awesomeTypescriptLoaderOptions": {
"forkChecker": true,
"useWebpackText": true
},
"compileOnSave": false,
"buildOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}
{
"extends": [
"tslint:recommended"
],
"rulesDirectory": [
"node_modules/codelyzer"
],
"rules": {
// Custom
"trailing-comma": [
false,
{
"multiline": "always",
"singleline": "never"
}
],
"interface-name": [
false,
"always-prefix"
],
// Angular 2
"component-class-suffix": false,
"directive-class-suffix": false,
// "directive-selector": [true, "attribute", [], "camelCase"],
// "component-selector": [true, "element", [], "kebab-case"],
"directive-selector": [true, "attribute", "cr", "kebab-case"],
"component-selector": [true, "element", "cr", "kebab-case"],
"import-destructuring-spacing": true,
"invoke-injectable": true,
"no-access-missing-member": true,
"no-attribute-parameter-decorator": true,
"no-forward-ref": true,
"no-input-rename": true,
"no-output-rename": true,
"pipe-naming": [
true,
"camelCase",
"my"
],
"templates-use-public": true,
"use-host-property-decorator": true,
"use-input-property-decorator": true,
"use-life-cycle-interface": true,
"use-output-property-decorator": true,
"use-pipe-transform-interface": true,
"no-empty": false,
// General
"no-console": [
true,
"time",
"timeEnd",
"trace"
],
"indent": [
false,
"spaces"
],
"member-ordering": [true,
"public-before-private",
"static-before-instance",
"variables-before-functions"
],
"member-access": false,
"triple-equals": true,
"no-string-literal": false,
"no-use-before-declare": true,
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [
true,
"single",
"avoid-escape"
],
"variable-name": [
true,
"allow-leading-underscore",
"allow-pascal-case",
"ban-keywords",
"check-format"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment