LoginSignup
0
0

More than 1 year has passed since last update.

ESLintでParsing error…となった時の備忘録

Posted at

ESLintがいちいちイラっとする

てんてるさんの『【Firebase】Cloud Functions チュートリアル』で
https://zenn.dev/tentel/books/a96e4a64d3a672911f25
FirebaseのCloud Functionsを学習中(08 HTTPリクエスト編(JavaScript)より)にESLintでエラーが発生。

  5:77  error  Parsing error: Unexpected token =>

✖ 1 problem (1 error, 0 warnings)

参考:
ESLintでParsing error…となった時の対応 parserOptionsを設定する
https://note.com/shift_tech/n/n550ac679fbfa

{
	"env": {
		"es2022": true
	},
	...
	"parserOptions": {
		"ecmaVersion": 13
	},
	...
}

こんな感じでparserOptionsを設定したらerrorが消えました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0