Irregular whitespace not allowed Vue.jsの開発中にLintのエラーが出た。 error in ./src/App.vue ✘ http://eslint.org/docs/rules/no-irregular-whitespace Irregular whitespace not allowed /Users/masa/.ghq/52.197.1.134/SumasapoWeb/web/src/App.vue:174:41 let lastName = this.name.split(/[ ]/g)[0] ^ 姓と名を分割したいけど半角スペースと全角スペースのどちらが区切り文字かわからないという場合のコード。 変なとこで空白使うなよ、って話でこれをなんとかしたいという話。 結論 半角スペースと全角スペースをそれぞれ文字コードで指定してやればよい。 /