Expected indentation of 1 tab but found 4 spaces.eslint , Parsing error: Unexpected token


ESLint設定エラー


ESLintを初めてインストールしたときにエラーが見つかりました.

エラーexpected indentation of 2 spaces but found 4. eslint(indent)


方法Eslint-congig-prettyerインストール


eslintとprettyerの衝突によるエラー!
だから.eslintrc.jsファイルのextends値にprettyerを追加すると、この問題を解決できます.
npm install --save-dev eslint-config-prettier
"extends" : ["some-other-config-you-ues","prettier"] 

エラーarsing error: Unexpected token


方法「babel-parser」の追加

"parser": "babel-parser"
ソース:[リンクテキスト](https://github.com/prettier/eslint-config-prettierソース:https://interacting.tistory.com/143[インタラクティブ])