Title: [lint] tslint.json could extend tslint:recommended · Issue #6179 · angular/angular-cli · GitHub
Open Graph Title: [lint] tslint.json could extend tslint:recommended · Issue #6179 · angular/angular-cli
X Title: [lint] tslint.json could extend tslint:recommended · Issue #6179 · angular/angular-cli
Description: Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [X] feature request Versions. @angular/cli: 1.1.0-beta.0 node: 7.4.0 Desired functionality. TSLint has introduced tslint:recommen...
Open Graph Description: Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [X] feature request Versions. @angular/cli: 1.1.0-beta.0 node: 7.4.0 Desired functionalit...
X Description: Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [X] feature request Versions. @angular/cli: 1.1.0-beta.0 node: 7.4.0 Desired functiona...
Opengraph URL: https://github.com/angular/angular-cli/issues/6179
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[lint] tslint.json could extend tslint:recommended","articleBody":"### Bug Report or Feature Request (mark with an `x`)\r\n```\r\n- [ ] bug report -> please search issues before submitting\r\n- [X] feature request\r\n```\r\n\r\n### Versions.\r\n@angular/cli: 1.1.0-beta.0\r\nnode: 7.4.0\r\n\r\n### Desired functionality.\r\nTSLint has introduced `tslint:recommended` (and `tslint:latest`) for a while, allowing a config to extend the recommended default, and just override a few rules.\r\n\r\nIt means we could simplify the configuration, and just keep a few overrides that are common in the Angular community.\r\n\r\n### Mention any other details that might be useful.\r\n\r\nSee the recommended set of rules: https://github.com/palantir/tslint/blob/master/src/configs/recommended.ts\r\n\r\nI gave it a naive first try, this is how the tslint.json would look like (to keep the configuration really close to the one we have right now):\r\n\r\n```json\r\n{\r\n \"rulesDirectory\": [\r\n \"node_modules/codelyzer\"\r\n ],\r\n \"extends\": \"tslint:recommended\",\r\n \"rules\": {\r\n \"array-type\": false,\r\n \"arrow-parens\": false,\r\n \"interface-name\": false,\r\n \"import-blacklist\": [true, \"rxjs\"],\r\n \"max-line-length\": [\r\n true,\r\n 140\r\n ],\r\n \"member-access\": false,\r\n \"member-ordering\": [\r\n true,\r\n \"static-before-instance\",\r\n \"variables-before-functions\"\r\n ],\r\n \"no-console\": [\r\n true,\r\n \"debug\",\r\n \"info\",\r\n \"time\",\r\n \"timeEnd\",\r\n \"trace\"\r\n ],\r\n \"no-empty\": false,\r\n \"no-inferrable-types\": [true, \"ignore-params\"],\r\n \"no-non-null-assertion\": true,\r\n \"no-string-literal\": false,\r\n \"no-switch-case-fall-through\": true,\r\n \"object-literal-sort-keys\": false,\r\n \"ordered-imports\": false,\r\n \"one-line\": [\r\n true,\r\n \"check-open-brace\",\r\n \"check-catch\",\r\n \"check-else\",\r\n \"check-whitespace\"\r\n ],\r\n \"quotemark\": [\r\n true,\r\n \"single\"\r\n ],\r\n \"trailing-comma\": false,\r\n \"variable-name\": false,\r\n\r\n \"directive-selector\": [true, \"attribute\", \"pr\", \"camelCase\"],\r\n \"component-selector\": [true, \"element\", \"pr\", \"kebab-case\"],\r\n \"use-input-property-decorator\": true,\r\n \"use-output-property-decorator\": true,\r\n \"use-host-property-decorator\": true,\r\n \"no-input-rename\": true,\r\n \"no-output-rename\": true,\r\n \"use-life-cycle-interface\": true,\r\n \"use-pipe-transform-interface\": true,\r\n \"component-class-suffix\": true,\r\n \"directive-class-suffix\": true,\r\n \"no-access-missing-member\": true,\r\n \"templates-use-public\": true,\r\n \"invoke-injectable\": true\r\n }\r\n}\r\n```\r\nIf you think it is interesting, I can work on a PR.\r\n","author":{"url":"https://github.com/cexbrayat","@type":"Person","name":"cexbrayat"},"datePublished":"2017-05-04T09:00:59Z","url":"https://github.com/angular/angular-cli/issues/6179"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:278ca590-0ba3-9ff3-fc40-7570cefd7e7b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8504:2454CC:3A45168:49EBFA4:6B01FF20 |
| html-safe-nonce | 446a7814ae86ebdc449744f4d89041ec8ac352da7018fb155200195ffd371c13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTA0OjI0NTRDQzozQTQ1MTY4OjQ5RUJGQTQ6NkIwMUZGMjAiLCJ2aXNpdG9yX2lkIjoiMTY0NDIxMjA3Nzk3MzMzOTkzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e85f49cd9873b877e708877393a04edcffc9415ea1666819cc228cf8adf7c952 |
| hovercard-subject-tag | issue:226216887 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/6179/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ff9bd7c5b35ba5ef221b6fa6c16aed02174ef1735202904a378b91fc37ec102/angular/angular-cli/issues/6179 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ff9bd7c5b35ba5ef221b6fa6c16aed02174ef1735202904a378b91fc37ec102/angular/angular-cli/issues/6179 |
| og:image:alt | Bug Report or Feature Request (mark with an x) - [ ] bug report -> please search issues before submitting - [X] feature request Versions. @angular/cli: 1.1.0-beta.0 node: 7.4.0 Desired functionalit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cexbrayat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width