-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
archived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionevaluatingThe team will evaluate this issue to decide whether it meets the criteria for inclusionThe team will evaluate this issue to decide whether it meets the criteria for inclusionruleRelates to ESLint's core rulesRelates to ESLint's core rules
Description
The func-style rule has been set to enforce use of function declarations.
var eslintConfig = {
'root': true,
'env': {
'browser': true
},
'extends': 'eslint:recommended',
'rules': {
/** Coding Style Standards **/
'func-style': ['error', 'declaration', { 'allowArrowFunctions': true }]
}
}
module.exports = eslintConfig;
I would expect that with this configuration, code such as the one below would lead to an error. But it doesn't.
var fnVariable;
fnVariable = function() {
return true;
}
michaelficarra
Metadata
Metadata
Assignees
Labels
archived due to ageThis issue has been archived; please open a new issue for any further discussionThis issue has been archived; please open a new issue for any further discussionevaluatingThe team will evaluate this issue to decide whether it meets the criteria for inclusionThe team will evaluate this issue to decide whether it meets the criteria for inclusionruleRelates to ESLint's core rulesRelates to ESLint's core rules