Skip to content

Instantly share code, notes, and snippets.

@briangershon
Last active January 28, 2022 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save briangershon/8281af9769296b01b05460b1b87e1e90 to your computer and use it in GitHub Desktop.
Save briangershon/8281af9769296b01b05460b1b87e1e90 to your computer and use it in GitHub Desktop.
vscode solidity plugin settings so linting works (when using a non-standard location)

The https://github.com/Developer-DAO/pixel-avatars project has a non-standard place for the contracts so the OpenZeppelin imports are shown with a red lint error.

For Solidity VSCode plugin, set "Package Default Dependencies Directory" to contract/node_modules instead of default node_modules.

VSCode can then find the OpenZeppelin imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment