fixing linting solhint

pull/4771/head
lianahus 7 months ago
parent 1d08797503
commit 39a466ac02
  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