Skip to content

Prettier config causes lint #919

@calebegg

Description

@calebegg

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": []
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions