Skip to content

Commit

Permalink
Updates and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
julienmalard committed Nov 26, 2024
1 parent 9a01311 commit 4866e28
Show file tree
Hide file tree
Showing 5 changed files with 1,085 additions and 232 deletions.
35 changes: 35 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import eslint from "@eslint/js";
import globals from "globals";
import { configs as configsTseslint } from "typescript-eslint";

export default [
{
ignores: ["**/dist/**"],
},
eslint.configs.recommended,
...configsTseslint.recommended,
{
files: ["**/*.d.{ts}"],
languageOptions: {
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
globals: {
...globals.node,
},
},
ignores: ["**/node_modules/**", "**/dist/**"],
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
},
},
];
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,21 @@
"homepage": "https://github.com/reseau-constellationn/orbit-db-types#readme",
"scripts": {
"test": "pnpm tsc -p tsconfig.json",
"release": "pnpm test && pnpm publish --access public"
"format": "pnpm prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\" && pnpm eslint . --fix",
"release": "pnpm test && pnpm format && pnpm publish --access public"
},
"devDependencies": {
"@libp2p/interface": "^2.2.1",
"@orbitdb/core": "^2.4.3",
"@types/elliptic": "^6.4.18",
"@types/events": "^3.0.3",
"eslint": "^9.15.0",
"globals": "^15.12.0",
"helia": "^5.1.1",
"multiformats": "^13.3.1",
"prettier": "^3.4.0",
"tiny-typed-emitter": "^2.1.0",
"typescript": "^5.7.2"
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0"
}
}
Loading

0 comments on commit 4866e28

Please sign in to comment.