mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
build(framework): update tslint config
This commit is contained in:
parent
21ddbc5b5d
commit
b75eb12837
1 changed files with 29 additions and 10 deletions
39
tslint.json
39
tslint.json
|
|
@ -1,6 +1,8 @@
|
||||||
{
|
{
|
||||||
|
"extends": [
|
||||||
|
"tslint-eslint-rules"
|
||||||
|
],
|
||||||
"rulesDirectory": [
|
"rulesDirectory": [
|
||||||
"node_modules/tslint-eslint-rules/dist/rules",
|
|
||||||
"node_modules/codelyzer"
|
"node_modules/codelyzer"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|
@ -31,7 +33,7 @@
|
||||||
],
|
],
|
||||||
"curly": true,
|
"curly": true,
|
||||||
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
|
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore"],
|
||||||
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type"],
|
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-type", "check-preblock"],
|
||||||
"no-constant-condition": true,
|
"no-constant-condition": true,
|
||||||
"no-control-regex": true,
|
"no-control-regex": true,
|
||||||
"no-debugger": true,
|
"no-debugger": true,
|
||||||
|
|
@ -60,7 +62,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"no-unused-new": true,
|
|
||||||
"no-use-before-declare": true,
|
"no-use-before-declare": true,
|
||||||
"array-bracket-spacing": [true, "never"],
|
"array-bracket-spacing": [true, "never"],
|
||||||
"block-spacing": [
|
"block-spacing": [
|
||||||
|
|
@ -77,7 +78,6 @@
|
||||||
"new-parens": true,
|
"new-parens": true,
|
||||||
"no-consecutive-blank-lines": [true, 2],
|
"no-consecutive-blank-lines": [true, 2],
|
||||||
"object-curly-spacing": [true, "always"],
|
"object-curly-spacing": [true, "always"],
|
||||||
"object-literal-key-quotes": [true, "as-needed"],
|
|
||||||
"ter-arrow-spacing": [
|
"ter-arrow-spacing": [
|
||||||
true,
|
true,
|
||||||
{
|
{
|
||||||
|
|
@ -96,8 +96,27 @@
|
||||||
],
|
],
|
||||||
"no-conditional-assignment": true,
|
"no-conditional-assignment": true,
|
||||||
"no-console": [true, "log"],
|
"no-console": [true, "log"],
|
||||||
"directive-selector": [true, "attribute", ["ngx"], "camelCase"],
|
"space-in-parens": ["error", "info", "never"],
|
||||||
"component-selector": [true, "element", ["ngx"], "kebab-case"],
|
"number-literal-format": true,
|
||||||
|
"no-invalid-template-strings": true,
|
||||||
|
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
|
||||||
|
"prefer-template": true,
|
||||||
|
"no-unnecessary-callback-wrapper": true,
|
||||||
|
"member-access": [true, "no-public"],
|
||||||
|
"newline-before-return": true,
|
||||||
|
"no-empty-interface": true,
|
||||||
|
"no-reference": true,
|
||||||
|
"prefer-for-of": true,
|
||||||
|
"forin": true,
|
||||||
|
"no-duplicate-super": true,
|
||||||
|
"triple-equals": true,
|
||||||
|
"array-type": [true, "array"],
|
||||||
|
"arrow-return-shorthand": true,
|
||||||
|
"no-boolean-literal-compare": true,
|
||||||
|
"object-literal-shorthand": true,
|
||||||
|
|
||||||
|
"directive-selector": [true, "attribute", ["ngx", "test"], "camelCase"],
|
||||||
|
"component-selector": [true, "element", ["ngx", "test"], "kebab-case"],
|
||||||
"use-input-property-decorator": true,
|
"use-input-property-decorator": true,
|
||||||
"use-output-property-decorator": true,
|
"use-output-property-decorator": true,
|
||||||
"use-host-property-decorator": true,
|
"use-host-property-decorator": true,
|
||||||
|
|
@ -107,12 +126,12 @@
|
||||||
"no-forward-ref": true,
|
"no-forward-ref": true,
|
||||||
"use-life-cycle-interface": true,
|
"use-life-cycle-interface": true,
|
||||||
"use-pipe-transform-interface": true,
|
"use-pipe-transform-interface": true,
|
||||||
"component-class-suffix": [true, "Component"],
|
"pipe-naming": [true, "camelCase", ["ngx", "test"]],
|
||||||
"directive-class-suffix": [true, "Directive"],
|
"component-class-suffix": true,
|
||||||
"import-destructuring-spacing": true,
|
"directive-class-suffix": true,
|
||||||
"templates-use-public": true,
|
"templates-use-public": true,
|
||||||
"no-access-missing-member": true,
|
"no-access-missing-member": true,
|
||||||
"invoke-injectable": true,
|
"invoke-injectable": true,
|
||||||
"space-in-parens": ["error", "never"]
|
"template-to-ng-template": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue