Closed moimael closed 5 years ago
You can custom plugins by option.parserPlugins
now. An example is https://github.com/styled-components/stylelint-processor-styled-components/blob/master/test/options.test.js#L211. If disabled the jsx plugin, use-experiment.ts
can be parsed successfully.
Of course, if someone can implement #231, that is much better.
Environment
.stylelintrc
Reproduction
Stylelint throws errors on Ts/Tsx files that don't use or import styled-components.
An example of one of the file that throws (the
use-experiment.ts
):Steps to reproduce
Not sure, just ran stylelint in my project
Expected Behavior
Shouldn't throw for files without styled-components
Actual Behavior
Throws styles errors on Ts/Tsx files only not related to styled-components.