Max Len 80 Character Problem

With Firebase CLI, I create functions in the functions folder for Firebase API. Then I deploy these functions with the “firebase deploy -only functions” command. But Firebase CLI gives an error every time because the character length of the lines exceeds 80 characters.

In order to prevent this problem, I made a note in the GEMINI.md file that it should write the code by paying attention to the 80 character rule when updating the functions, but it absolutely does not obey this and keeps repeating the same error. It seems to ignore the GEMINI.md file sufficiently. Should I use airules.md? Does anyone have experience with this?

Use airules.md if you want the “Prototyper” to follow your rules. This airules.md should be created in your .idx folder.

GEMINI.md will be used as a fallback if the airules.md file doesn’t exist and the GEMINI.md file seems to only be recognized in “Code” mode.

No. As I said, I use CLI, not Prototyper.

Hey, I had the same problem. The error is from the ESLint linter, not Firebase directly.

A quick fix is to edit the .eslintrc.js file in your functions folder. Add this rule to allow longer lines (120 Characters worked good for me):

"max-len": ["error", {"code": 120}

1 Like

I will try this. Thank you. But it is still annoying that the CLI does not take into account what I wrote in the GEMINI.md file. I hope a solution will be provided.