Closed ddubrava closed 2 years ago
Prettier fails on package.json with Unexpected token '.' error. It happens due to prettier-plugin-sort-package.js syntax (line 20, line 28) since old node versions can't work with these. Can you specify engines in package.json?
Unexpected token '.'
prettier-plugin-sort-package.js
prettier package.json
node 12 1.32.1
Description
Prettier fails on package.json with
Unexpected token '.'
error. It happens due toprettier-plugin-sort-package.js
syntax (line 20, line 28) since old node versions can't work with these. Can you specify engines in package.json?Reproduction
prettier package.json
Environment
node 12 1.32.1