0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

(ボツ記事。解決できたと思ってたけど違ってた).eslintrc.jsに「 'valid-jsdoc': 'warn', 」を追加したら、問題ないはずなのに「jsdoc syntax error」になる

Last updated at Posted at 2023-07-26

状況

このようなjsdocがあったとしたら、ここ全体的に黄色の線が出て「jsdoc syntax error」と警告が出る。lintが通らない

/**
 * Hoge草メソッド
 *
 * @param {number} age - 年齢
 * @returns {Hoge} - hoge
 */
export const hoge = (

解決策

jsdocとメソッドとの間に1行空ける
(追記)↑これ、ルール握りつぶしてるだけだった。
もしルールを作ったのがリーダーならリーダーに確認して対応不要にするかルール削除するか

感想

は??eslint絶対おかしくて草
(追記)俺がおかしくて草

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?