Skip to content

Commit

Permalink
Enforce ESLint func-names rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Sep 4, 2024
1 parent 606b679 commit b633382
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
},
rules: {
curly: ['error', 'all'],
'func-names': ['error', 'always'],
'newline-before-return': 'error',
'no-console': ['error', { allow: ['info', 'warn', 'error'] }],

Expand Down Expand Up @@ -167,6 +168,7 @@ module.exports = {
files: ['cypress/**/*.js', 'cypress/**/*.ts', 'cypress.config.ts'],
plugins: ['cypress', 'mocha'],
rules: {
'func-names': ['off'],
// TODO Check why either Prettier or ESLint auto-formatting does that and why this rule is not enabled.
// 'max-len': ['warn', { code: 120 }],

Expand Down

0 comments on commit b633382

Please sign in to comment.