lib/dictionaries/jscs/disallowSpacesInNamedFunctionExpression.js
/**
* @fileoverview Translation for `disallowSpacesInNamedFunctionExpression` (JSCS) to ESLint
* @author Breno Lima de Freitas <https://breno.io>
* @copyright 2016 Breno Lima de Freitas. All rights reserved.
* See LICENSE file in root directory for full license.
*/
'use strict'
//------------------------------------------------------------------------------
// Rule Translation Definition
//------------------------------------------------------------------------------
module.exports = function(__current__, value) {
if (value.beforeOpeningRoundBrace) {
return {
'space-before-function-paren': [2, {
'anonymous': 'ignore',
'named': 'never'
}]
}
}
return {}
};