Skip to content

Commit

Permalink
fix: πŸ› use typescript-eslint's no-use-before-define
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Nov 8, 2024
1 parent 002ea96 commit 7b4f0cc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/configs/__snapshots__/typescript.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8826,12 +8826,22 @@ If your function does not access \`this\`, you can annotate it with \`this: void
},
},
],
"@typescript-eslint/no-use-before-define": [
"error",
{
"allowNamedExports": false,
"classes": false,
"functions": false,
"variables": true,
},
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{
"allowNumber": true,
},
],
"no-use-before-define": "off",
},
},
{
Expand Down
10 changes: 10 additions & 0 deletions src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,20 @@ export const typescriptConfig = (options: TypescriptOptions) => {
"error",
{ checksVoidReturn: { attributes: false } },
],
"@typescript-eslint/no-use-before-define": [
"error",
{
allowNamedExports: false,
classes: false,
functions: false,
variables: true,
},
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{ allowNumber: true },
],
"no-use-before-define": "off",
},
},
{
Expand Down

0 comments on commit 7b4f0cc

Please sign in to comment.