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[インタラクティブ])
Reference
この問題について(Expected indentation of 1 tab but found 4 spaces.eslint , Parsing error: Unexpected token), 我々は、より多くの情報をここで見つけました
https://velog.io/@lsh__97/Expected-indentation-of-1-tab-but-found-4-spaces.eslint-Parsing-error-Unexpected-token
テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol
npm install --save-dev eslint-config-prettier
"extends" : ["some-other-config-you-ues","prettier"]
"parser": "babel-parser"
Reference
この問題について(Expected indentation of 1 tab but found 4 spaces.eslint , Parsing error: Unexpected token), 我々は、より多くの情報をここで見つけました https://velog.io/@lsh__97/Expected-indentation-of-1-tab-but-found-4-spaces.eslint-Parsing-error-Unexpected-tokenテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol