solhint
Advanced tools
Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3
{ | ||
"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!') |
734100
16550