LoginSignup
5
0

More than 3 years have passed since last update.

stylelintがtsx(jsx)に効かない問題の現時点での対処法

Posted at

何が起きてた?

stylelint 13.3.1から、tsxファイルにstylelintが全く反応しない(問題があってもDoneになる)問題があった
条件は .babelrc などのbabel設定ファイルでpluginsの配列要素数が2以上のときだった

issueとしては以下

直接的要因と思われる場所

workaround

  "parserOpts": {
    "plugins": ["jsx", "typescript"]
  },

を追加すると、stylelint 13.12.0でも動作するようになった

issueにも書いた

https://github.com/stylelint/stylelint/issues/4732#issuecomment-820027303

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0