Skip to content

Commit

Permalink
Merge branch 'update_dependencies'
Browse files Browse the repository at this point in the history
  • Loading branch information
yumauri committed Jul 6, 2024
2 parents 54272dd + 72b2ad1 commit 570bc33
Show file tree
Hide file tree
Showing 11 changed files with 746 additions and 1,852 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

16 changes: 0 additions & 16 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
nodejs 20.14.0
pnpm 9.1.4
nodejs 20.15.0
pnpm 9.4.0
44 changes: 44 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// @ts-check

import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'
import eslintConfigPrettier from 'eslint-config-prettier'

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
// ...tseslint.configs.strictTypeChecked,
// ...tseslint.configs.stylisticTypeChecked,
// {
// languageOptions: {
// parserOptions: {
// project: true,
// tsconfigRootDir: import.meta.dirname,
// },
// },
// },
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/unified-signatures': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/no-invalid-void-type': [
'error',
{ allowAsThisParameter: true },
],
'@typescript-eslint/explicit-module-boundary-types': [
'error',
{ allowArgumentsExplicitlyTypedAsAny: true },
],
// '@typescript-eslint/only-throw-error': 'off',
// '@typescript-eslint/no-unsafe-return': 'off',
// '@typescript-eslint/no-unsafe-member-access': 'off',
// '@typescript-eslint/no-unsafe-assignment': 'off',
// '@typescript-eslint/no-unsafe-argument': 'off',
},
},
eslintConfigPrettier
)
25 changes: 11 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,32 @@
"effector-storage": "^7.1.0"
},
"devDependencies": {
"@babel/core": "^7.24.6",
"@babel/plugin-transform-block-scoping": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"@babel/core": "^7.24.7",
"@babel/plugin-transform-block-scoping": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@eslint/js": "^9.6.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@size-limit/preset-small-lib": "^11.1.4",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@types/eslint__js": "^8.42.3",
"@vitest/coverage-v8": "^1.6.0",
"eslint": "^8.57.0",
"eslint": "^9.6.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.7.0",
"eslint-plugin-promise": "^6.2.0",
"flowgen": "^1.21.0",
"npm-run-all2": "^6.2.0",
"prettier": "^3.2.5",
"npm-run-all2": "^6.2.2",
"prettier": "^3.3.2",
"rollup": "^4.18.0",
"rollup-plugin-command": "^1.1.3",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-generate-package-json": "^3.2.0",
"size-limit": "^11.1.4",
"typescript": "^5.4.5",
"typescript": "^5.5.3",
"typescript-eslint": "^7.15.0",
"vitest": "^1.6.0",
"yaspeller": "^10.0.1"
},
"packageManager": "pnpm@9.1.4",
"packageManager": "pnpm@9.4.0",
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions packages/idb-keyval/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"build": "NODE_ENV=production rollup --config ../../rollup.config.mjs",
"build:dev": "rollup --config ../../rollup.config.mjs",
"check:lint": "eslint src --ext .ts --config ../../.eslintrc.js",
"check:lint": "eslint src --config ../../eslint.config.mjs",
"check:types": "tsc --noEmit",
"check:format": "prettier --check src",
"//check:spell": "yaspeller .",
Expand All @@ -24,7 +24,7 @@
"idb-keyval": ">=5.0.0"
},
"devDependencies": {
"fake-indexeddb": "^5.0.2",
"fake-indexeddb": "^6.0.0",
"idb": "^8.0.0"
}
}
8 changes: 4 additions & 4 deletions packages/idb-keyval/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ export interface IdbStorageConfig {
keyvalStore?: UseStore
}

export const keyArea = Symbol() // eslint-disable-line symbol-description
const keyvalStores: Map<string, UseStore> = new Map()
export const keyArea = Symbol()
const keyvalStores = new Map<string, UseStore>()

const buffer: Map<
const buffer = new Map<
UseStore | undefined,
[
number | undefined, // timeoutId
number | undefined, // scheduled
Map<string, any>,
]
> = new Map()
>()

/**
* Flush buffer to actual IndexedDB store
Expand Down
2 changes: 1 addition & 1 deletion packages/keyv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "NODE_ENV=production rollup --config ../../rollup.config.mjs",
"build:dev": "rollup --config ../../rollup.config.mjs",
"check:lint": "eslint src --ext .ts --config ../../.eslintrc.js",
"check:lint": "eslint src --config ../../eslint.config.mjs",
"check:types": "tsc --noEmit",
"check:format": "prettier --check src",
"//check:spell": "yaspeller .",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-async-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"build": "NODE_ENV=production rollup --config ../../rollup.config.mjs",
"build:dev": "rollup --config ../../rollup.config.mjs",
"check:lint": "eslint src --ext .ts --config ../../.eslintrc.js",
"check:lint": "eslint src --config ../../eslint.config.mjs",
"check:types": "tsc --noEmit",
"check:format": "prettier --check src",
"//check:spell": "yaspeller .",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-encrypted-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"build": "NODE_ENV=production rollup --config ../../rollup.config.mjs",
"build:dev": "rollup --config ../../rollup.config.mjs",
"check:lint": "eslint src --ext .ts --config ../../.eslintrc.js",
"check:lint": "eslint src --config ../../eslint.config.mjs",
"check:types": "tsc --noEmit",
"check:format": "prettier --check src",
"//check:spell": "yaspeller .",
Expand Down
Loading

0 comments on commit 570bc33

Please sign in to comment.