Skip to content

Commit

Permalink
fix(typescript): swap in ts version of no-use-before-define
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwremmel committed Nov 6, 2021
1 parent 3cd8129 commit 14fede1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/configs/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,22 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/member-delimiter-style': 'error',
'@typescript-eslint/member-ordering': 'error',
'@typescript-eslint/no-use-before-define': [
'error',
{
classes: true,
functions: false,
variables: true,
},
],
'@typescript-eslint/type-annotation-spacing': 'error',
'babel/new-cap': 'error',
'new-cap': 'off',
'no-dupe-class-members': 'off',
'no-redeclare': 'off',
// types don't get picked up as used by eslint
'no-unused-vars': 'off',
'no-use-before-define': 'off',
'react/prop-types': 'off',
'valid-jsdoc': 'off',
},
Expand Down

0 comments on commit 14fede1

Please sign in to comment.