refactor(core): Update rule typescript-eslint/no-unused-vars to not error when variable starts with _ (#4523)

*  rule and fixes

*  clean up
This commit is contained in:
Michael Kret
2022-11-08 16:28:21 +02:00
committed by GitHub
parent ebf17e1827
commit 479644a499
260 changed files with 366 additions and 695 deletions

View File

@@ -4,7 +4,7 @@ import snowflake from 'snowflake-sdk';
export function connect(conn: snowflake.Connection) {
return new Promise((resolve, reject) => {
conn.connect((err, conn) => {
conn.connect((err, _conn) => {
if (!err) {
// @ts-ignore
resolve();
@@ -17,7 +17,7 @@ export function connect(conn: snowflake.Connection) {
export function destroy(conn: snowflake.Connection) {
return new Promise((resolve, reject) => {
conn.destroy((err, conn) => {
conn.destroy((err, _conn) => {
if (!err) {
// @ts-ignore
resolve();