Skip to content

Conversation

@mnusurov
Copy link

feat(solhint): full hierarchical config via .solhint.json

What's changed

  • Removed solidity.solhintRules — configuration is now only via .solhint.json
  • Removed ValidationConfig — obsolete and broke hierarchy
  • Use processFile(filePath, undefined, rootPath):
    • Full support for multiple .solhint.json (any folder)
    • extends, plugins, inline disables, cache — all work
    • 100% CLI-compatible: solhint src/file.sol = VSCode
  • Kept solidity.solhintPackageDirectory for monorepo/custom Solhint
  • Updated README: links to Solhint config docs

Why

  • Users expect same behavior as CLI
  • solidity.solhintRules broke hierarchy and caused confusion
  • No more sync issues, no more fs.watchFile, no more Object.assign

Testing

  • .solhint.json in src/ overrides root
  • extends: "solhint:recommended" works
  • Inline // solhint-disable-next-line works
  • Cache (.solhintcache.json) works
  • solidity.solhintPackageDirectory works

Closes these issues

- Remove solidity.solhintRules — config only via .solhint.json
- Remove ValidationConfig — obsolete
- Use processFile(filePath, undefined, rootPath)
  → full support: multiple .solhint.json, extends, plugins, inline, cache
- Keep solidity.solhintPackageDirectory for monorepo
- Update README: links to Solhint docs
- 100% CLI-compatible: solhint src/file.sol = VSCode
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.

1 participant