Shopify / tslint-config-shopify

Shopify’s TypeScript rules and configs.
https://www.npmjs.com/package/tslint-config-shopify
37 stars 3 forks source link

Bug in jsxBooleanValueRule.ts #37

Closed ismail-syed closed 7 years ago

ismail-syed commented 7 years ago
[Info  - 3:02:30 PM] vscode-tslint: 'Cannot read property 'kind' of undefined' while validating: /Users/ismailsyed/src/github.com/Shopify/neutron/client/index.tsx stacktrace: TypeError: Cannot read property 'kind' of undefined
    at isInitializerTrue (/Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/tslint-config-shopify/customRules/jsxBooleanValueRule.js:51:31)
    at JsxBooleanValueWalker.visitJsxAttribute (/Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/tslint-config-shopify/customRules/jsxBooleanValueRule.js:64:27)
    at JsxBooleanValueWalker.SyntaxWalker.visitNode (/Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/tslint/lib/language/walker/syntaxWalker.js:394:22)
    at /Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/tslint/lib/language/walker/syntaxWalker.js:523:63
    at visitEachNode (/Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/typescript/lib/typescript.js:13882:30)
    at Object.forEachChild (/Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/typescript/lib/typescript.js:14207:21)
    at JsxBooleanValueWalker.SyntaxWalker.walkChildren (/Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/tslint/lib/language/walker/syntaxWalker.js:523:12)
    at JsxBooleanValueWalker.SyntaxWalker.visitNode (/Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/tslint/lib/language/walker/syntaxWalker.js:517:22)
    at /Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/tslint/lib/language/walker/syntaxWalker.js:523:63
    at visitNode (/Users/ismailsyed/src/github.com/Shopify/neutron/node_modules/typescript/lib/typescript.js:13870:20)