diff --git a/lib/util/ast/getPropertyName.js b/lib/util/ast/getPropertyName.js index f77c590b4a..26f9fac586 100644 --- a/lib/util/ast/getPropertyName.js +++ b/lib/util/ast/getPropertyName.js @@ -1,4 +1,4 @@ -export default function (property) { +export default function getPropertyName (property) { if (property.type === 'Literal') { return property.value } else if (property.type === 'Identifier') { diff --git a/lib/util/ast/isFunction.js b/lib/util/ast/isFunction.js index b92c52359a..a85968b52a 100644 --- a/lib/util/ast/isFunction.js +++ b/lib/util/ast/isFunction.js @@ -1,4 +1,4 @@ -export default function (type) { +export default function isFunction (type) { return ( type === 'ArrowFunctionExpression' || type === 'FunctionExpression' diff --git a/lib/util/ast/isMeteorCall.js b/lib/util/ast/isMeteorCall.js index 19248102d3..cc2f4a98f3 100644 --- a/lib/util/ast/isMeteorCall.js +++ b/lib/util/ast/isMeteorCall.js @@ -1,6 +1,6 @@ import isMeteorProp from './isMeteorProp' -export default function (node, propName) { +export default function isMeteorCall (node, propName) { return ( node.type === 'CallExpression' && node.callee.type === 'MemberExpression' && diff --git a/lib/util/ast/isMeteorProp.js b/lib/util/ast/isMeteorProp.js index e0868fda3b..3cc952c67e 100644 --- a/lib/util/ast/isMeteorProp.js +++ b/lib/util/ast/isMeteorProp.js @@ -1,4 +1,4 @@ -export default function (node, propName) { +export default function isMeteorProp (node, propName) { return ( node.type === 'MemberExpression' && node.object.type === 'Identifier' && node.object.name === 'Meteor' && diff --git a/lib/util/ast/isTemplateProp.js b/lib/util/ast/isTemplateProp.js index 1d6f538cd8..e9328b3554 100644 --- a/lib/util/ast/isTemplateProp.js +++ b/lib/util/ast/isTemplateProp.js @@ -1,6 +1,6 @@ import getPropertyName from './getPropertyName' -export default function (node, propName) { +export default function isTemplateProp (node, propName) { return ( node.type === 'MemberExpression' && node.object.type === 'MemberExpression' && diff --git a/lib/util/meta/getEnvFromComments.js b/lib/util/meta/getEnvFromComments.js index b2937d27f2..9fb2669768 100644 --- a/lib/util/meta/getEnvFromComments.js +++ b/lib/util/meta/getEnvFromComments.js @@ -2,7 +2,7 @@ import {UNIVERSAL, CLIENT, SERVER} from '../environment' const meteorEnvRegEx = /^eslint-meteor-env (client|server)\s?(,\s?(client|server))*$/ -export default function (comments = []) { +export default function getEnvFromComments (comments = []) { const envs = new Set() comments.forEach(comment => { const trimmedValue = comment diff --git a/lib/util/meta/getRelativePath.js b/lib/util/meta/getRelativePath.js index 8c840dad93..9e5d707d79 100644 --- a/lib/util/meta/getRelativePath.js +++ b/lib/util/meta/getRelativePath.js @@ -1,7 +1,7 @@ import stripPathPrefix from './stripPathPrefix' const getRootPath = require('./getRootPath') -export default function (filename) { +export default function getRelativePath (filename) { // '' is ESLint's default filename when the real one is not known if (filename === '') { return false diff --git a/lib/util/meta/getRootPath.js b/lib/util/meta/getRootPath.js index fe244c823f..74431d5bd8 100644 --- a/lib/util/meta/getRootPath.js +++ b/lib/util/meta/getRootPath.js @@ -9,7 +9,7 @@ function hasFile (parent, filename) { // cache for root paths const rootPaths = [] -export default function (filename) { +export default function getRootPath (filename) { // check whether the project root is already known or not let rootPath = find(rootPaths, function (currentPath) {