mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2024-11-08 19:11:31 +01:00
fix: relax no-unused-vars
ignore variable starting with _
This commit is contained in:
parent
c3ddbc73b7
commit
32481c316f
@ -61,7 +61,7 @@
|
|||||||
"no-unsafe-negation": "error",
|
"no-unsafe-negation": "error",
|
||||||
"no-unsafe-optional-chaining": "error",
|
"no-unsafe-optional-chaining": "error",
|
||||||
"no-unused-private-class-members": "error",
|
"no-unused-private-class-members": "error",
|
||||||
"no-unused-vars": "error",
|
"no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
|
||||||
"no-use-before-define": [
|
"no-use-before-define": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
@ -200,7 +200,10 @@
|
|||||||
"no-loss-of-precision": "off",
|
"no-loss-of-precision": "off",
|
||||||
"@typescript-eslint/no-loss-of-precision": "error",
|
"@typescript-eslint/no-loss-of-precision": "error",
|
||||||
"no-unused-vars": "off",
|
"no-unused-vars": "off",
|
||||||
"@typescript-eslint/no-unused-vars": "error",
|
"@typescript-eslint/no-unused-vars": [
|
||||||
|
"error",
|
||||||
|
{ "varsIgnorePattern": "^_" }
|
||||||
|
],
|
||||||
"no-use-before-define": "off",
|
"no-use-before-define": "off",
|
||||||
"@typescript-eslint/no-use-before-define": [
|
"@typescript-eslint/no-use-before-define": [
|
||||||
"error",
|
"error",
|
||||||
|
Loading…
Reference in New Issue
Block a user