Skip to content

Commit

Permalink
fix(stylisticIssues): enforce warn to func-names expression
Browse files Browse the repository at this point in the history
  • Loading branch information
5im0n committed Sep 20, 2016
1 parent 7725c39 commit a38e50a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/stylistic-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ module.exports = {
// enforce newline at the end of file, with no multiple empty lines
'eol-last': 'error',
// require function expressions to have a name
'func-names': 'off',
'func-names': ['warn', 'always'],
// enforces use of function declarations or expressions
'func-style': ['warn', 'declaration'],
'func-style': ['warn', 'declaration', { 'allowArrowFunctions': true }],
// blacklist certain identifiers to prevent them being used
'id-blacklist': ['error', 'e', 'cb'],
// enforce this rules this option enforces minimum and maximum identifier lengths (variable names, property names etc.)
Expand Down

0 comments on commit a38e50a

Please sign in to comment.