{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/3077","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/3077/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/3077/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/3077/events","html_url":"https://github.com/palantir/tslint/issues/3077","id":245642610,"number":3077,"title":"Expected indentation of \"NaN\" spaces but found 0.","user":{"login":"ScionOfBytes","id":5138570,"avatar_url":"https://avatars0.githubusercontent.com/u/5138570?v=4","gravatar_id":"","url":"https://api.github.com/users/ScionOfBytes","html_url":"https://github.com/ScionOfBytes","followers_url":"https://api.github.com/users/ScionOfBytes/followers","following_url":"https://api.github.com/users/ScionOfBytes/following{/other_user}","gists_url":"https://api.github.com/users/ScionOfBytes/gists{/gist_id}","starred_url":"https://api.github.com/users/ScionOfBytes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScionOfBytes/subscriptions","organizations_url":"https://api.github.com/users/ScionOfBytes/orgs","repos_url":"https://api.github.com/users/ScionOfBytes/repos","events_url":"https://api.github.com/users/ScionOfBytes/events{/privacy}","received_events_url":"https://api.github.com/users/ScionOfBytes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-26T08:21:48Z","updated_at":"2017-07-26T15:35:03Z","closed_at":null,"body":"### Bug Report\r\n\r\n- __TSLint version__: 5.5.0\r\n- __TypeScript version__: 2.4.2\r\n- __Running TSLint via__: (pick one) CLI\r\n\r\n#### TypeScript code being linted\r\n\r\n```ts\r\n'use strict'\r\n\r\nimport { betalistUtil, logger as Logger } from '@crowdfire/cf-util'\r\n\r\nimport * as Constants from '../constants'\r\n\r\nexport const init = function () {\r\n  return betalistUtil.initializeClient()\r\n    .then(() => Logger.info(null, null, `Betalist initialized.`))\r\n    .catch(err => {\r\n\r\n      Logger.fatal(null, null, `Betalist failed to initialized.`, err)\r\n      return false\r\n    })\r\n}\r\n\r\nexport const isUserQrEligible = function (userId: string) {\r\n  return betalistUtil.isAllowed(userId, Constants.BETALIST.DAILY_IN_APP_QR)\r\n    .catch(err => {\r\n\r\n      Logger.err(null, userId, `Betalist encountered an error.`, err)\r\n      return false\r\n    })\r\n}\r\n```\r\n\r\nwith `tslint.json` configuration:\r\n\r\n```json\r\n{\r\n  \"extends\": \"tslint-config-airbnb\",\r\n  \"rules\": {\r\n    \"semicolon\": [true, \"never\"],\r\n    \"trailing-comma\": [false, {\"multiline\": \"always\", \"singleline\": \"always\"}],\r\n    \"max-line-length\": [true, 120],\r\n    \"arrow-parens\": [true, \"ban-single-arg-parens\"],\r\n    \"ter-arrow-parens\": [true, \"as-needed\"],\r\n    \"object-shorthand-properties-first\": false,\r\n    \"import-name\": false\r\n  }\r\n}\r\n```\r\n\r\n#### Actual behavior\r\n\r\nOn the last line of the file I'm getting `Expected indentation of \"NaN\" spaces but found 0.`\r\n\r\n#### Expected behavior\r\n\r\nThis linting error shouldn't happen :/\r\n\r\nNote: This happened when I updated Typescript from 2.3.3 to 2.4.2. On 2.3.3 this doesn't happen.\r\n"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/318091315","html_url":"https://github.com/palantir/tslint/issues/3077#issuecomment-318091315","issue_url":"https://api.github.com/repos/palantir/tslint/issues/3077","id":318091315,"user":{"login":"IllusionMH","id":1312662,"avatar_url":"https://avatars1.githubusercontent.com/u/1312662?v=4","gravatar_id":"","url":"https://api.github.com/users/IllusionMH","html_url":"https://github.com/IllusionMH","followers_url":"https://api.github.com/users/IllusionMH/followers","following_url":"https://api.github.com/users/IllusionMH/following{/other_user}","gists_url":"https://api.github.com/users/IllusionMH/gists{/gist_id}","starred_url":"https://api.github.com/users/IllusionMH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IllusionMH/subscriptions","organizations_url":"https://api.github.com/users/IllusionMH/orgs","repos_url":"https://api.github.com/users/IllusionMH/repos","events_url":"https://api.github.com/users/IllusionMH/events{/privacy}","received_events_url":"https://api.github.com/users/IllusionMH/received_events","type":"User","site_admin":false},"created_at":"2017-07-26T15:35:03Z","updated_at":"2017-07-26T15:35:03Z","body":"@ScionOfBytes looks like this is problem with [tslint-eslint-rules](https://github.com/buzinas/tslint-eslint-rules) package which is dependency of `tslint-config-airbnb` configuration.\r\n\r\nMessage template that you see can be found in [ter-indent on line 311](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/rules/terIndentRule.ts#L311) but not in this repo.\r\n\r\nPlease report issue in [tslint-eslint-rules](https://github.com/buzinas/tslint-eslint-rules) repo."}}
{"actor":{"display_login":"IllusionMH"}}