Skip to content

Commit

Permalink
fix(standard-linter): allow underscore prefix for variables (#11)
Browse files Browse the repository at this point in the history
fix(standard-linter): allow underscore prefix
  • Loading branch information
Nanosync authored Nov 2, 2023
1 parent 988deb9 commit 1d58d4f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/standard-linter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ module.exports = {
"@typescript-eslint/no-floating-promises": "error",
"no-console": "error",

// Fix airbnb-typescript/base rule to allow leading underscores for unused vars
"@typescript-eslint/naming-convention": [
"error",
{
selector: "variable",
format: ["camelCase", "PascalCase", "UPPER_CASE"],
leadingUnderscore: "allow",
},
],
/**
* Separates out the `no-unused-vars` rule depending on it being an import statement in the AST and providing
* an auto-fix rule to remove the nodes if they are imports.
Expand Down

0 comments on commit 1d58d4f

Please sign in to comment.