Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier config causes lint #919

Open
calebegg opened this issue Jan 6, 2025 · 0 comments
Open

Prettier config causes lint #919

calebegg opened this issue Jan 6, 2025 · 0 comments

Comments

@calebegg
Copy link
Member

calebegg commented Jan 6, 2025

The default .prettierrc.js generated by gts itself causes a lint issue triggered by the gts lint config:

Rest/spread properties are not supported until Node.js 8.3.0. The configured version range is '>=8.0.0'.eslint[n/no-unsupported-features/es-syntax](https://github.com/weiran-zsd/eslint-plugin-node/blob/HEAD/docs/rules/no-unsupported-features/es-syntax.md)

That's a pretty old version of Node to be limited to. I'm not sure where the config is inherited from but I worked around it with:

{
  "n/no-unsupported-features/es-syntax": [
    "error",
    {
      "version": ">=20.0.0",
      "ignores": []
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant