Open rcky opened 6 years ago
Currently the linting does throw warnings/errors in tests due to undefined functions which mocha injects into the context. I think we should add corresponding rules to the linter config.
A start could be this package https://www.npmjs.com/package/eslint-plugin-mocha
@rcky You can import them form moca to get ride of the linter error.
const { describe, it, before, after } = require('mocha');
@lkappeler sounds ok to me!
Currently the linting does throw warnings/errors in tests due to undefined functions which mocha injects into the context. I think we should add corresponding rules to the linter config.
A start could be this package https://www.npmjs.com/package/eslint-plugin-mocha