Skip to content

Commit

Permalink
[conf] more eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed Sep 11, 2023
1 parent 6218bea commit 2f5ca41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ settings:

rules:
'@typescript-eslint/consistent-type-definitions': ['error', 'type']
'@typescript-eslint/strict-boolean-expressions': ['error', allowNullableObject: true]
'@typescript-eslint/promise-function-async': 'off'
'import/no-default-export': 'error'
'import/no-unresolved': 'error'
# disabled since it's already covered by the 'import/no-unresolved'
'n/no-missing-import': 'off'
'jsdoc/require-jsdoc': ['error', { 'require': { 'FunctionExpression': true, 'ArrowFunctionExpression': true } }]
'jsdoc/require-returns': 'off'
'jsdoc/require-throws': 'error'
'jsdoc/require-param': ['error', checkDestructured: false]
'jsdoc/check-param-names': ['error', checkDestructured: false]
'jsdoc/tag-lines': ['error', 'any', startLines: 1]
'jsdoc/require-hyphen-before-param-description': 'error'
'vitest/no-hooks': ['error', 'allow': ['afterEach']]

0 comments on commit 2f5ca41

Please sign in to comment.