Skip to content

Commit bd8150d

Browse files
committed
Update dependencies and clean up codebase
1 parent a07104d commit bd8150d

15 files changed

+3803
-7609
lines changed

.eslintrc.json .eslintrc

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
2-
"extends": [
3-
"eslint:recommended",
4-
"plugin:@typescript-eslint/recommended",
5-
"prettier"
6-
],
2+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
73
"parser": "@typescript-eslint/parser",
84
"parserOptions": {
95
"sourceType": "module",
@@ -24,4 +20,4 @@
2420
"process": true,
2521
"test": true
2622
}
27-
}
23+
}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.DS_Store
12
node_modules
23
**/*.js
34
dist

.prettierrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"useTabs": false,
3+
"tabWidth": 4,
4+
"singleQuote": false,
5+
"semi": true,
6+
"trailingComma": "es5",
7+
"printWidth": 100,
8+
"importOrder": [
9+
"^@core/(.*)$",
10+
"^@server/(.*)$",
11+
"^@ui/(.*)$",
12+
"^[./]"
13+
],
14+
"importOrderSeparation": true,
15+
"importOrderSortSpecifiers": true,
16+
"plugins": [
17+
"@trivago/prettier-plugin-sort-imports"
18+
],
19+
"overrides": [
20+
{
21+
"files": "*.svelte",
22+
"options": {
23+
"parser": "svelte"
24+
}
25+
}
26+
]
27+
}

.prettierrc.json

-7
This file was deleted.

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ npm add @nostr-dev-kit/ndk-cache-redis
1414
```
1515

1616
### Add as a cache adapter
17+
1718
```ts
18-
import NDKRedisCacheAdapter from '@nostr-dev-kit/ndk-cache-redis';
19+
import NDKRedisCacheAdapter from "@nostr-dev-kit/ndk-cache-redis";
20+
1921
const cacheAdapter = new NDKRedisCacheAdapter();
2022
const ndk = new NDK({ cacheAdapter });
2123
```

config/tsconfig.cjs.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"extends": "../tsconfig",
3-
"compilerOptions": {
4-
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
5-
"outDir": "../dist/cjs" /* Redirect output structure to the directory. */
6-
}
2+
"extends": "../tsconfig",
3+
"compilerOptions": {
4+
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
5+
"outDir": "../dist/cjs" /* Redirect output structure to the directory. */
6+
}
77
}

config/tsconfig.esm.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"extends": "../tsconfig",
3-
"compilerOptions": {
4-
"moduleResolution": "node",
5-
"module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
6-
"outDir": "../dist/esm" /* Redirect output structure to the directory. */
7-
}
2+
"extends": "../tsconfig",
3+
"compilerOptions": {
4+
"moduleResolution": "node",
5+
"module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
6+
"outDir": "../dist/esm" /* Redirect output structure to the directory. */
7+
}
88
}

config/tsconfig.types.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"extends": "../tsconfig",
3-
"compilerOptions": {
4-
"declaration": true /* Generates corresponding '.d.ts' file. */,
5-
"emitDeclarationOnly": true,
6-
"outDir": "../dist/types" /* Redirect output structure to the directory. */
7-
}
2+
"extends": "../tsconfig",
3+
"compilerOptions": {
4+
"declaration": true /* Generates corresponding '.d.ts' file. */,
5+
"emitDeclarationOnly": true,
6+
"outDir": "../dist/types" /* Redirect output structure to the directory. */
7+
}
88
}

config/tsconfig.umd.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"extends": "../tsconfig",
3-
"compilerOptions": {
4-
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
5-
"declaration": false /* Generates corresponding '.d.ts' file. */
6-
}
2+
"extends": "../tsconfig",
3+
"compilerOptions": {
4+
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
5+
"declaration": false /* Generates corresponding '.d.ts' file. */
6+
}
77
}

0 commit comments

Comments
 (0)