Tinkoff / linters

Tinkoff ESlint, Stylelint and Prettier linter configurations
Apache License 2.0
125 stars 24 forks source link

fix(prettier-config): fix compat with node 12 #220

Closed zy2ba closed 1 year ago

zy2ba commented 1 year ago

node 12 don't support optional chaining

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

What is the current behavior?

try to run prettier angular config on node 12 throws error [error] Unexpected token '.'

What is the new behavior?

prettifying works normally

Does this PR introduce a breaking change?