Skip to content

Commit

Permalink
Add ESLint rule for 'prefer-const'
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed Nov 19, 2024
1 parent 362850c commit 4ee0f74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export default [
'no-return-assign': 'error',
'no-return-await': 'error',
'object-shorthand': ['error', 'always'],
'prefer-const': 'error',
'prefer-destructuring': ['error', { VariableDeclarator: { object: true } }],
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }],
'react/display-name': 'off', // TODO: Delete this override
Expand Down

0 comments on commit 4ee0f74

Please sign in to comment.