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

can't be used as a esformatter plugin since transform_node is undefined #2

Open
millermedeiros opened this issue Jun 23, 2014 · 1 comment

Comments

@millermedeiros
Copy link

/Users/millermedeiros/Projects/opensource/rocambole-commafirst/lib/index.js:10
  rocambole.moonwalk(ast, transform_node)
                          ^
ReferenceError: transform_node is not defined

would also be cool to add some documentation on how to install the plugin and use it:

Use it as an esformatter plugin

install it:

npm install rocambole-commafirst

and add to your esformatter config file:

{
  "plugins": [
    "rocambole-commafirst"
  ]
}

PS: would be good to add esformatter to the package.json keywords.

@millermedeiros
Copy link
Author

to test it locally:

npm link

add the esformatter config to package.json:

{
  "esformatter": {
    "root": true,
    "plugins": ["rocambole-commafirst"]
  }
}

and run

esformatter test/funky-object.js

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