Skip to content

Commit

Permalink
fix: update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Dec 31, 2023
1 parent 9030d6a commit b929161
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 126 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ module.exports = {
"@typescript-eslint/no-empty-interface": "off",
"no-useless-escape": "off",
"no-return-await": "error",
"@typescript-eslint/no-unsafe-declaration-mergin": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off"
//"require-await": "error" TODO
},
}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,26 @@
"nuke": "shx rm -rf {.,packages/*/*}/{node_modules,yarn.lock}"
},
"devDependencies": {
"@types/benchmark": "^2.1.2",
"@types/eslint": "^8.37.0",
"@types/benchmark": "^2.1.5",
"@types/eslint": "^8.56.0",
"@types/eslint-plugin-prettier": "^3.1.0",
"@types/jest": "^29.5.4",
"@types/node": "^20.2.5",
"@types/prettier": "^2.7.1",
"@types/prettier": "^3.0.0",
"@types/rimraf": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"benchmark": "^2.1.4",
"dotenv": "^16.0.3",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.2",
"gh-pages": "^5.0.0",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"json": "^11.0.0",
"lerna": "^8.0.1",
"prettier": "^3.0.3",
"prettier": "^3.1.1",
"rimraf": "^3.0.2",
"shx": "^0.3.4",
"ts-jest": "^29.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/clients/peerbit-server/node/src/domain.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { waitFor } from "@peerbit/time";

const isNode = typeof window === undefined || typeof window === "undefined";
const isNode = typeof window === "undefined";

const validateEmail = (email) => {
return String(email)
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/logger/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pino from "pino";

const isNode = typeof window === undefined || typeof window === "undefined";
const isNode = typeof window === "undefined";

export const getEnv = (key) => {
if (isNode) {
Expand Down
Loading

0 comments on commit b929161

Please sign in to comment.