Skip to content

Commit 8461b66

Browse files
committed
Bump deps
replace tslint with eslint
1 parent 5d01c24 commit 8461b66

8 files changed

Lines changed: 3991 additions & 1764 deletions

File tree

.eslintrc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
root: true,
7+
rules: {
8+
'@typescript-eslint/no-unused-vars': [
9+
'error',
10+
{
11+
argsIgnorePattern: '^_',
12+
ignoreRestSiblings: true,
13+
},
14+
],
15+
'@typescript-eslint/no-explicit-any': [0],
16+
'@typescript-eslint/no-var-requires': [0],
17+
},
18+
};

__tests__/drivers/mysql.driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class MysqlDriver {
3333
private getAllEnums([schemaName, ...tableNames]: string[]): IColumn[] {
3434
return Object.entries(this.schemas)
3535
.filter(([schemaKey]) => (schemaName && schemaKey === schemaName) || !schemaName)
36-
.reduce((tables, [x, schema]) => tables.concat(Object.values(schema)), [] as ITable[])
36+
.reduce((tables, [_x, schema]) => tables.concat(Object.values(schema)), [] as ITable[])
3737
.filter((table) => tableNames.length === 0 || tableNames.includes(table.name))
3838
.reduce(
3939
(rows, table) =>

0 commit comments

Comments
 (0)