Open kof opened 7 years ago
May be, eslint plugin? Example:
import jss from 'jss';
jss.createStyleSheet({ ... }).attach();
ESLint checks that jss
is imported from node_modules/jss
and... But the correctness of CSS properties should be checked with Flow.
The latest version of stylelint supports objects syntax now!
The latest version of stylelint supports objects syntax now!
Is this to say it should support JSS linting out of the box, or that it is possible via a custom processor? Thanks!
@kof I know this issue is old, but are you happy with the stylelint integration? I've created a jss eslint plugin based on my needs. I would open source it if you think there is any desire/need for it.
@jackhenry Our team has had mixed results using stylelint with JSS (large number of false positives and false negatives). Would love to understand alternatives like your eslint plugin and contribute improvements to one or both projects as we better understand the current issues.
(/CC @bmcniel)
@SpainTrain Ok great! I'll work on open sourcing what I have. I'll ping when it's ready.
I also found a small list of desired features to implement from #255.
I didn't have time to work on this, so if anyone does it, I am happy.
I think it would be nice to be able to enforce things like alphabetical order at least.
Has there been any progress on this? Not being able to use stylelint is a big drawback
Lets try to implement it. We need to find a way to support all interfaces, jss, react-jss, styled-jss, aphrodite-jss. Check out stylelint processors api.