productboardlabs / tslint-pb

📄 (DEPRECATED) Our own custom TSlint rules. What has been seen, cannot be unseen.
MIT License
5 stars 0 forks source link

Consistently import React modules #19

Open mauricekleine opened 5 years ago

mauricekleine commented 5 years ago

Sometimes we use:

import React from "react";

class SomeComponent extends React.Component {}

and sometimes we use:

import React, { Component } from "react";

class SomeComponent extends Component {}

We should enforce consistent import of React modules.

jukben commented 5 years ago

I like the idea. If you wanna give it a go we can sync later today and you can try to tackle it. 👍

mauricekleine commented 5 years ago

@jukben sounds perfect! What about at the end of the day? I have sync until 5.30 but after that I'm your man 🤙