开发常见问题

script 格式化问题

通过 command + option + L 格式化代码后,script 可能会出现 indent 的警告,解决方案有两种:

  • 关闭 eslint 中的 indent 检查;
  • 修改 webstorm 中 indent 设置:

Webstorm => Preferences => Editor => Code Style => HTML => Other

do not indent of children 中增加 script 即可

上次更新: 11/15/2019, 11:49:52 PM