millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

Using a preset package that is scoped in an organization #486

Open AgustinCroce opened 7 years ago

AgustinCroce commented 7 years ago

Hi,

In our organization we made a preset npm package(https://www.npmjs.com/package/@exo-dev/esformatter-preset-exo). We want to add it to our .esformatter file so we created the next file:

{
  "extends": ["preset:exo"]
}

We got the next error:

Error: index.js Can't parse configuration file '.esformatter'. Exception: Cannot find module 'esformatter-preset-exo' from '/home/agustinc/project'

That's right because the package is named @exo-dev/esformatter-preset-exo in the node_modules folder.

How can we use the extends on the .esformatter file to reference our package?