Socket
Socket
Sign inDemoInstall

solhint

Package Overview
Dependencies
11
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3

2

package.json
{
"name": "solhint",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"description": "Solidity Code Linter",

@@ -5,0 +5,0 @@ "main": "solhint.js",

@@ -90,15 +90,9 @@ #!/usr/bin/env node

const configPath = '.solhint.json'
const sampleConfig = [
'{ ',
' "extends": "default", ',
' "rules": { ',
' "indent": ["error", 4], ',
' "quotes": ["error", "double"], ',
' "max-line-length": ["error", 120] ',
' } ',
'} '
]
const sampleConfig = `{
"extends": "solhint:default"
}
`
if (!fs.existsSync(configPath)) {
fs.writeFileSync(configPath, sampleConfig.join('\n'))
fs.writeFileSync(configPath, sampleConfig)

@@ -105,0 +99,0 @@ console.log('Configuration file created!')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc