Skip to content

Commit 23e661d

Browse files
committed
chore(dev): make linters happy
1 parent 5aab461 commit 23e661d

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
presets: ['module:react-native-builder-bob/babel-preset'],
3-
};
3+
}

example/definitions/pouchdb.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare module 'pouchdb-adapter-http'
2+
declare module 'pouchdb-replication'
3+
declare module 'pouchdb-mapreduce'

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"@types/react": "^18.2.44",
7575
"commitlint": "^17.0.2",
7676
"del-cli": "^5.1.0",
77-
"eslint": "^8.51.0",
77+
"eslint": "^8.57.0",
7878
"eslint-config-prettier": "^9.0.0",
7979
"eslint-plugin-prettier": "^5.0.1",
8080
"jest": "^29.7.0",
@@ -144,6 +144,8 @@
144144
"prettier"
145145
],
146146
"rules": {
147+
"@typescript-eslint/no-shadow": "off",
148+
"react-native/no-inline-styles": "off",
147149
"react/react-in-jsx-scope": "off",
148150
"prettier/prettier": [
149151
"error",

src/core.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function SqlPouch(opts: OpenDatabaseOptions, cb: (err: any) => void) {
193193
onGetInstanceId()
194194
}
195195

196-
async function runMigrations(tx: Transaction, dbVersion: number) {
196+
async function runMigrations(_tx: Transaction, dbVersion: number) {
197197
// const tasks = [setupDone]
198198
//
199199
// let i = dbVersion
@@ -666,8 +666,8 @@ function SqlPouch(opts: OpenDatabaseOptions, cb: (err: any) => void) {
666666
}
667667

668668
api._getAttachment = (
669-
docId: string,
670-
attachId: string,
669+
_docId: string,
670+
_attachId: string,
671671
attachment: any,
672672
opts: any,
673673
callback: (err: any, response?: any) => void
@@ -722,10 +722,10 @@ function SqlPouch(opts: OpenDatabaseOptions, cb: (err: any) => void) {
722722
traverseRevTree(
723723
metadata.rev_tree,
724724
(
725-
isLeaf: boolean,
725+
_isLeaf: boolean,
726726
pos: number,
727727
revHash: string,
728-
ctx: Transaction,
728+
_ctx: Transaction,
729729
opts: any
730730
) => {
731731
const rev = pos + '-' + revHash
@@ -852,7 +852,7 @@ function SqlPouch(opts: OpenDatabaseOptions, cb: (err: any) => void) {
852852
}
853853
}
854854

855-
api._destroy = (opts: any, callback: (err: any, response?: any) => void) => {
855+
api._destroy = (_opts: any, callback: (err: any, response?: any) => void) => {
856856
sqliteChanges.removeAllListeners(api._name)
857857
transaction(async (tx: Transaction) => {
858858
try {

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5816,7 +5816,7 @@ __metadata:
58165816
languageName: node
58175817
linkType: hard
58185818

5819-
"eslint@npm:^8.51.0":
5819+
"eslint@npm:^8.57.0":
58205820
version: 8.57.1
58215821
resolution: "eslint@npm:8.57.1"
58225822
dependencies:
@@ -10452,7 +10452,7 @@ __metadata:
1045210452
commitlint: ^17.0.2
1045310453
debug: ^4.4.0
1045410454
del-cli: ^5.1.0
10455-
eslint: ^8.51.0
10455+
eslint: ^8.57.0
1045610456
eslint-config-prettier: ^9.0.0
1045710457
eslint-plugin-prettier: ^5.0.1
1045810458
events: ^3.3.0

0 commit comments

Comments
 (0)