web-dev-qa-db-ja.com

このESLINTエラー「HTMLタグの前後に予想される新しい回線休憩」をオフにするにはどうすればよいですか。

私はNUXT JSを使用しています。また、「NPM RUN DEV」を実行するたびに、このエラーが発生します。

       7:40  warning  Expected 1 line break after opening tag (`<v-card-title>`), but no line breaks found    vue/singleline-html-element-content-newline
      17:81  warning  Expected 1 line break before closing tag (`</v-card-title>`), but no line breaks found  vue/singleline-html-element-content-newline
      20:14  warning  Expected 1 line break after opening tag (`<p>`), but no line breaks found               vue/multiline-html-element-content-newline
      23:12  warning  Expected 1 line break after opening tag (`<a>`), but no line breaks found               vue/multiline-html-element-content-newline
      23:25  warning  Expected 1 line break before closing tag (`</a>`), but no line breaks found             vue/multiline-html-element-content-newline
      23:30  warning  Expected 1 line break before closing tag (`</p>`), but no line breaks found             vue/multiline-html-element-content-newline
      24:14  warning  Expected 1 line break after opening tag (`<p>`), but no line breaks found               vue/multiline-html-element-content-newline
      28:12  warning  Expected 1 line break after opening tag (`<a>`), but no line breaks found               vue/multiline-html-element-content-newline
      28:19  warning  Expected 1 line break before closing tag (`</a>`), but no line breaks found             vue/multiline-html-element-content-newline
      28:24  warning  Expected 1 line break before closing tag (`</p>`), but no line breaks found             vue/multiline-html-element-content-newline
      29:14  warning  Expected 1 line break after opening tag (`<p>`), but no line breaks found               vue/multiline-html-element-content-newline
      33:12  warning  Expected 1 line break after opening tag (`<a>`), but no line breaks found               vue/multiline-html-element-content-newline
      33:23  warning  Expected 1 line break before closing tag (`</a>`), but no line breaks found             vue/multiline-html-element-content-newline
      33:28  warning  Expected 1 line break before closing tag (`</p>`), but no line breaks found             vue/multiline-html-element-content-newline
      42:12  warning  Expected 1 line break after opening tag (`<a>`), but no line breaks found               vue/multiline-html-element-content-newline
      42:30  warning  Expected 1 line break before closing tag (`</a>`), but no line breaks found             vue/multiline-html-element-content-newline
      47:12  warning  Expected 1 line break after opening tag (`<a>`), but no line breaks found               vue/multiline-html-element-content-newline
      47:23  warning  Expected 1 line break before closing tag (`</a>`), but no line breaks found             vue/multiline-html-element-content-newline
      56:12  warning  Expected 1 line break after opening tag (`<v-btn>`), but no line breaks found           vue/multiline-html-element-content-newline
      56:20  warning  Expected 1 line break before closing tag (`</v-btn>`), but no line breaks found         vue/multiline-html-element-content-newline
 _

このエラーをオフにするにはどうすればよいですか。

4
priosshrsth

この警告は、単線タグを避けるべきであると言っています。たとえば、代わりに

<nuxt-link to="/test">Another page</nuxt-link> _

これを使用するだけです。

<nuxt-link to="/test">
  Another page
</nuxt-link>
 _
0
Evgeny Danilov