LoginSignup
9
1

More than 3 years have passed since last update.

[Vue] ESLintを更新すると謎のエラー clear が表示される件

Last updated at Posted at 2020-12-02

ESLintを更新したところ、謎のエラーが出るようになったのでメモ。

14:12  error  clear  vue/comment-directive

幾つか同じ事例を見つけたが、原因ははっきりしなかった。

https://stackoverflow.com/questions/64529114/eslint-vue-plugin-showing-false-positives-for-vue-comment-directive
https://www.v2ex.com/t/722925

ともかく、vue/comment-directive ルールに引っかかっているのは間違いないので、
.eslintrc.js にルールを無効化する設定を書いて、しのいでいるらしい。

・・・と思っていたところ、コメント欄で正しい解決方法を教えていただきました。
@mysticatea 様、ありがとうございました!

はて、eslint-plugin-vue が使われていれば、その postprocess で削除されるので出ないはずですが...

module.exports = {
  ...
  overrides: [
    {
      files: ["*.vue"],
      processor: "vue/.vue"
    }
  ]
}
9
1
6

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
9
1