nuxt.jsでESLintを使用していますが、vueファイルしか認識してくれません。
ファイルは役割ごとに分割したいので、vueファイル内で以下の構成にしています。
vue
1<style scoped src="./style.css" /> 2<template src="./template.html" /> 3<script> 4export default { 5} 6</script>
vueファイルでテストするとちゃんと動作しますが、template.htmlの方は検知してくれません。
描画部分はtemplate.htmlにコーディングしていくので、以下のように変更しました。
(設定箇所あっているかわかりませんが、、、)
// 変更前 "lint": "eslint --ext .js,.vue,--ignore-path .gitignore .",
// 変更後 "lint": "eslint --ext .js,.vue,.html --ignore-path .gitignore .",
変更後、yarn devしてみるも検知されません。
分割した状態で検知するにはどうしたら良いでしょうか?
あなたの回答
tips
プレビュー