fixing linting solhint

pull/5370/head
lianahus 7 months ago
parent 260130339a
commit bfe8c12818
  1. 2
      apps/solhint/.eslintrc
  2. 2
      apps/solhint/src/app/SolhintPluginClient.ts

@ -10,7 +10,7 @@
], ],
"rules": { "rules": {
"@nrwl/nx/enforce-module-boundaries": [ "@nrwl/nx/enforce-module-boundaries": [
"warn" "off"
] ]
} }
} }

@ -45,7 +45,7 @@ export class SolHint extends PluginClient {
} }
async lintOnCompilation() { async lintOnCompilation() {
if(!this.triggerLinter) return if (!this.triggerLinter) return
this.on('solidity', 'compilationFinished', async (fileName, source, languageVersion, data) => { this.on('solidity', 'compilationFinished', async (fileName, source, languageVersion, data) => {
const hints = await this.lint(fileName) const hints = await this.lint(fileName)
console.log('after compile', { hints }) console.log('after compile', { hints })

Loading…
Cancel
Save