helga-agentur / eslint-config-joinbox

Joinbox ES Linter Configuration
MIT License
0 stars 0 forks source link

Fix warnings for missing mocha functions in tests #1

Open rcky opened 6 years ago

rcky commented 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

lkappeler commented 6 years ago

@rcky You can import them form moca to get ride of the linter error.

const { describe, it, before, after } = require('mocha');
rcky commented 6 years ago

@lkappeler sounds ok to me!