UNPKG

eslint-config-etherpad

Version:

ESLint shareable config used for Etherpad and its plugins

28 lines (26 loc) 721 B
'use strict'; module.exports = { plugins: [ 'mocha', ], extends: [ './index.js', 'plugin:mocha/recommended', ], env: { mocha: true, }, rules: { 'mocha/no-empty-description': 'error', 'mocha/no-hooks-for-single-case': 'off', 'mocha/no-return-from-async': 'error', // Disabled due to false positives: // - https://github.com/lo1tuma/eslint-plugin-mocha/issues/274 // - Using a loop to define tests can trigger it unless the logic is trivial. 'mocha/no-setup-in-describe': 'off', 'mocha/no-synchronous-tests': 'error', 'mocha/prefer-arrow-callback': 'error', 'prefer-arrow-callback': 'off', 'prefer-arrow/prefer-arrow-functions': 'off', }, };