- Notifications
You must be signed in to change notification settings - Fork76
Closed
Description
I'm currently having issues declaring SFCs when using the following tslint configuration:
{ "extends": ["tslint-config-airbnb", "tslint-react", "tslint-config-prettier"]}and here is a sample component
import * as React from 'react';const DummyComponent = () => <div>Hello World!</div>;export default DummyComponent;which results in the error
[tslint] variable name must be in lowerCamelCase or UPPER_CASE (variable-name)const DummyComponent: () => JSX.ElementI know that it is thetslint-config-airbnb causing the issue, but I would have thought that tslint-react would have a rule for Pascal cased SFCs.
I think that this rule is missing. I'd be happy to throw up a PR if that's the case. I just need to read up a bit on creating rules.