Skip to content

Commit

Permalink
chore(eslint): add no-use-before-define and change max-len rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Desplandis committed Oct 17, 2024
1 parent 426fe29 commit f8021b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,14 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
],
rules: {
'@stylistic/max-len': ['warn', 80],
'@stylistic/max-len': ['warn', {
code: 100,
comments: 80,
ignoreUrls: true,
}],
// see https://typescript-eslint.io/rules/no-use-before-define/
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'valid-jsdoc': 'off',
'tsdoc/syntax': 'warn',
},
Expand Down

0 comments on commit f8021b4

Please sign in to comment.