eslint-config-etherpad
Version:
ESLint shareable config used for Etherpad and its plugins
25 lines (23 loc) • 589 B
JavaScript
;
module.exports = {
plugins: [
'cypress',
],
extends: [
'../node.js',
'../tests.js',
'plugin:cypress/recommended',
],
env: {
'cypress/globals': true,
},
rules: {
// Cypress prefers synchronous arrow functions passed to Mocha functions.
'mocha/no-mocha-arrows': 'off',
'mocha/no-synchronous-tests': 'off',
'mocha/prefer-arrow-callback': 'off',
'n/no-unpublished-require': 'off', // It's OK for tests to use devDependencies.
'prefer-arrow-callback': 'error',
'prefer-arrow/prefer-arrow-functions': 'error',
},
};