Title: [linter] arrow-spacing null node · Issue #35 · lightscript/lightscript · GitHub
Open Graph Title: [linter] arrow-spacing null node · Issue #35 · lightscript/lightscript
X Title: [linter] arrow-spacing null node · Issue #35 · lightscript/lightscript
Description: repro x = b -> c stack Cannot read property 'range' of null TypeError: Cannot read property 'range' of null at TokenStore.getTokenBefore (/home/ubuntu/workspace/node_modules/eslint/lib/token-store/index.js:318:17) at getTokens (/home/ubu...
Open Graph Description: repro x = b -> c stack Cannot read property 'range' of null TypeError: Cannot read property 'range' of null at TokenStore.getTokenBefore (/home/ubuntu/workspace/node_modules/eslint/lib/token-store/...
X Description: repro x = b -> c stack Cannot read property 'range' of null TypeError: Cannot read property 'range' of null at TokenStore.getTokenBefore (/home/ubuntu/workspace/node_modules/esli...
Opengraph URL: https://github.com/lightscript/lightscript/issues/35
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[linter] arrow-spacing null node","articleBody":"### repro\r\n\r\n```js\r\nx = b -\u003e c\r\n```\r\n\r\n### stack\r\n\r\n```console\r\nCannot read property 'range' of null\r\nTypeError: Cannot read property 'range' of null\r\n at TokenStore.getTokenBefore (/home/ubuntu/workspace/node_modules/eslint/lib/token-store/index.js:318:17)\r\n at getTokens (/home/ubuntu/workspace/node_modules/eslint/lib/rules/arrow-spacing.js:63:36)\r\n at EventEmitter.spaces (/home/ubuntu/workspace/node_modules/eslint/lib/rules/arrow-spacing.js:89:28)\r\n at emitOne (events.js:120:20)\r\n at EventEmitter.emit (events.js:210:7)\r\n at NodeEventGenerator.applySelector (/home/ubuntu/workspace/node_modules/eslint/lib/util/node-event-generator.js:265:26)\r\n at NodeEventGenerator.applySelectors (/home/ubuntu/workspace/node_modules/eslint/lib/util/node-event-generator.js:294:22)\r\n at NodeEventGenerator.enterNode (/home/ubuntu/workspace/node_modules/eslint/lib/util/node-event-generator.js:308:14)\r\n at CodePathAnalyzer.enterNode (/home/ubuntu/workspace/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:602:23)\r\n at CommentEventGenerator.enterNode (/home/ubuntu/workspace/node_modules/eslint/lib/util/comment-event-generator.js:98:23)\r\n```\r\n\r\nDiscovered while working on the cli:\r\nhttps://github.com/citycide/lightscript-cli/blob/ac44f424d1d455bbe7dd335557d51a822abc47dd/src/commands/compile.lsc#L48","author":{"url":"https://github.com/haltcase","@type":"Person","name":"haltcase"},"datePublished":"2017-06-09T05:36:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/35/lightscript/issues/35"}
| 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:56a6cf2f-b73c-abd4-45ed-7d7cb69441a1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D352:91DE5:B0DC0C:1044404:6A4E2068 |
| html-safe-nonce | 00d0928ca7701072406ee541f0d57d45f837fe381dc09f4ccd3e4aae299eea18 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzUyOjkxREU1OkIwREMwQzoxMDQ0NDA0OjZBNEUyMDY4IiwidmlzaXRvcl9pZCI6IjM5MDYyMjIyMjcyMDUyNjc1NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a1b4e09deebefde256d1813a1af00232fb4ec18581d20f76a997e05a510159d8 |
| hovercard-subject-tag | issue:234725969 |
| 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/lightscript/lightscript/35/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a7b614c6df2cca21d29cc57d6763400868ac6ebfdf429a1cbc45c99a88391bc/lightscript/lightscript/issues/35 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a7b614c6df2cca21d29cc57d6763400868ac6ebfdf429a1cbc45c99a88391bc/lightscript/lightscript/issues/35 |
| og:image:alt | repro x = b -> c stack Cannot read property 'range' of null TypeError: Cannot read property 'range' of null at TokenStore.getTokenBefore (/home/ubuntu/workspace/node_modules/eslint/lib/token-store/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | haltcase |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/lightscript/lightscript git https://github.com/lightscript/lightscript.git |
| octolytics-dimension-user_id | 20427295 |
| octolytics-dimension-user_login | lightscript |
| octolytics-dimension-repository_id | 63191213 |
| octolytics-dimension-repository_nwo | lightscript/lightscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63191213 |
| octolytics-dimension-repository_network_root_nwo | lightscript/lightscript |
| 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 | 5fe497b4815fcce3df76c0e246faa739a82c3124 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width