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

Allow using solhint as a library and in the browser #177

Merged
merged 1 commit into from Jan 24, 2020

Conversation

fvictorio
Copy link
Contributor

To test the "library" part: create an npm package, install solhint (you can use yalc for this), and use it like this:

const solhint = require('solhint')

solhint.parseStr('contract Foo {}')

To test the browser part, do the same thing but with a web app. For this to work the webpack configuration must have the node option in true. If you use create-react-app, that is part of the configuration out of the box.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 96.347% when pulling f204ea4 on solhint-as-library into 88dca20 on 3.0.

@fernandomg fernandomg merged commit 18e3cc9 into 3.0 Jan 24, 2020
@fernandomg fernandomg deleted the solhint-as-library branch January 24, 2020 17:13
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

Successfully merging this pull request may close these issues.

None yet

3 participants