phpstormで自動インデント(Auto-Indent Lines)を使った場合に、デフォルト設定ではscriptタグの中のJavascriptに警告[ ESLint: Expected indentation of 0 spaces but found 2. (indent) ]がでてとても気になります。
Preferences… -> Editor -> Code Style -> HTML
Do not indent childrenにscriptを追加します。
これで、自動インデントした場合に、scriptタグ内はインデントがゼロスタートになるので、警告も、手で直す手間もなくなります。
phpstormでESLintのインデントの警告(赤い波線)を消す
