Skip to content

Commit

Permalink
fix(eslint): add consistent-function-scoping rule to enforce function…
Browse files Browse the repository at this point in the history
… scoping standards across the project
  • Loading branch information
guidomodarelli committed Dec 12, 2024
1 parent 3fde6b8 commit 254fcdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ module.exports = {
/* -------------------------------------------------------------------------- */
/* unicorn */
/* -------------------------------------------------------------------------- */
'unicorn/consistent-function-scoping': [
'error',
{
checkArrowFunctions: false,
},
],
'unicorn/no-static-only-class': 'off',
'unicorn/prefer-module': 'off',
'unicorn/prefer-ternary': 'off',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/consistent-function-scoping */
/*
* Wazuh app - Health Check Component - Test
*
Expand Down

0 comments on commit 254fcdd

Please sign in to comment.