3d2c2c40d8
This commit updates the docs examples to Angular v11.0.1. In addition to updating the dependencies versions, it also updates the project's structure and config to more closely match what a new v11 CLI app would look like. See, also, the [diff][1] between a basic v10.1.3 CLI app and a v11.0.2 one. NOTE: I refrained from disabling the Selenium Promise Manager (as seen [here][2]) and switching all e2e tests to `async/await`, because that is a big change and should be done in a separate commit/PR. [1]: https://github.com/cexbrayat/angular-cli-diff/compare/10.1.3..11.0.2 [2]: https://github.com/cexbrayat/angular-cli-diff/compare/10.1.3...11.0.2#diff-dbd675d74087d57cd084d6dd6ae24ae2eeff2ff0122680e12916052f8a843a29 PR Close #39818
155 lines
3.3 KiB
JSON
155 lines
3.3 KiB
JSON
{
|
|
"extends": "tslint:recommended",
|
|
"rulesDirectory": [
|
|
"codelyzer"
|
|
],
|
|
"rules": {
|
|
"align": {
|
|
"options": [
|
|
"parameters",
|
|
"statements"
|
|
]
|
|
},
|
|
"array-type": false,
|
|
"arrow-return-shorthand": true,
|
|
"curly": true,
|
|
"deprecation": {
|
|
"severity": "warning"
|
|
},
|
|
"eofline": true,
|
|
"import-blacklist": [
|
|
true,
|
|
"rxjs/Rx"
|
|
],
|
|
"import-spacing": true,
|
|
"indent": {
|
|
"options": [
|
|
"spaces"
|
|
]
|
|
},
|
|
"max-classes-per-file": false,
|
|
"max-line-length": [
|
|
true,
|
|
140
|
|
],
|
|
"member-ordering": [
|
|
true,
|
|
{
|
|
"order": [
|
|
"static-field",
|
|
"instance-field",
|
|
"static-method",
|
|
"instance-method"
|
|
]
|
|
}
|
|
],
|
|
"no-console": [
|
|
true,
|
|
"debug",
|
|
"info",
|
|
"time",
|
|
"timeEnd",
|
|
"trace"
|
|
],
|
|
"no-empty": false,
|
|
"no-inferrable-types": [
|
|
true,
|
|
"ignore-params"
|
|
],
|
|
"no-non-null-assertion": true,
|
|
"no-redundant-jsdoc": true,
|
|
"no-switch-case-fall-through": true,
|
|
"no-var-requires": false,
|
|
"object-literal-key-quotes": [
|
|
true,
|
|
"as-needed"
|
|
],
|
|
"quotemark": [
|
|
true,
|
|
"single"
|
|
],
|
|
"semicolon": {
|
|
"options": [
|
|
"always"
|
|
]
|
|
},
|
|
"space-before-function-paren": {
|
|
"options": {
|
|
"anonymous": "never",
|
|
"asyncArrow": "always",
|
|
"constructor": "never",
|
|
"method": "never",
|
|
"named": "never"
|
|
}
|
|
},
|
|
// TODO(gkalpak): Fix the code and enable this.
|
|
// "typedef": [
|
|
// true,
|
|
// "call-signature"
|
|
// ],
|
|
"typedef-whitespace": {
|
|
"options": [
|
|
{
|
|
"call-signature": "nospace",
|
|
"index-signature": "nospace",
|
|
"parameter": "nospace",
|
|
"property-declaration": "nospace",
|
|
"variable-declaration": "nospace"
|
|
},
|
|
{
|
|
"call-signature": "onespace",
|
|
"index-signature": "onespace",
|
|
"parameter": "onespace",
|
|
"property-declaration": "onespace",
|
|
"variable-declaration": "onespace"
|
|
}
|
|
]
|
|
},
|
|
"variable-name": {
|
|
"options": [
|
|
"ban-keywords",
|
|
"check-format",
|
|
"allow-pascal-case"
|
|
]
|
|
},
|
|
"whitespace": {
|
|
"options": [
|
|
"check-branch",
|
|
"check-decl",
|
|
"check-operator",
|
|
"check-separator",
|
|
"check-type",
|
|
"check-typecast"
|
|
]
|
|
},
|
|
"component-class-suffix": true,
|
|
"contextual-lifecycle": true,
|
|
"directive-class-suffix": true,
|
|
"no-conflicting-lifecycle": true,
|
|
"no-host-metadata-property": true,
|
|
"no-input-rename": true,
|
|
"no-inputs-metadata-property": true,
|
|
"no-output-native": true,
|
|
"no-output-on-prefix": true,
|
|
"no-output-rename": true,
|
|
"no-outputs-metadata-property": true,
|
|
"template-banana-in-box": true,
|
|
"template-no-negated-async": true,
|
|
"use-lifecycle-interface": true,
|
|
"use-pipe-transform-interface": true,
|
|
"directive-selector": [
|
|
true,
|
|
"attribute",
|
|
["app", "toh"],
|
|
"camelCase"
|
|
],
|
|
"component-selector": [
|
|
true,
|
|
"element",
|
|
// TODO: Fix the code and change the prefix to `"app"` (or whatever makes sense).
|
|
"",
|
|
"kebab-case"
|
|
]
|
|
}
|
|
}
|