📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Add airbnb-typescript
Blue Mouse0e6d5ebdfe1f
diff --git a/backend/.eslintrc.js b/backend/.eslintrc.jsindex 65bfec76b..f0ee5e28e 100644--- a/backend/.eslintrc.js+++ b/backend/.eslintrc.js@@ -7,6 +7,7 @@ module.exports = {plugins: ['@typescript-eslint/eslint-plugin'],extends: ['airbnb-base',+ 'airbnb-typescript/base','plugin:@typescript-eslint/recommended',// 'eslint:recommended','plugin:prettier/recommended',diff --git a/backend/package-lock.json b/backend/package-lock.jsonindex f7a03af7d..ac53ed871 100644--- a/backend/package-lock.json+++ b/backend/package-lock.json@@ -5,7 +5,6 @@"requires": true,"packages": {"": {- "name": "backend","license": "AGPL-3.0","dependencies": {"@clickhouse/client": "^1.8.0",@@ -94,10 +93,11 @@"@types/nodemailer": "^6.4.16","@types/passport-jwt": "^4.0.1","@types/ua-parser-js": "^0.7.39",- "@typescript-eslint/eslint-plugin": "^8.14.0",- "@typescript-eslint/parser": "^8.14.0",+ "@typescript-eslint/eslint-plugin": "^7.18.0",+ "@typescript-eslint/parser": "^7.18.0","eslint": "^8.57.0","eslint-config-airbnb-base": "^15.0.0",+ "eslint-config-airbnb-typescript": "^18.0.0","eslint-config-prettier": "^9.1.0","eslint-plugin-import": "^2.31.0","eslint-plugin-prettier": "^5.2.1",@@ -3854,32 +3854,32 @@}},"node_modules/@typescript-eslint/eslint-plugin": {- "version": "8.14.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.14.0.tgz",- "integrity": "sha512-tqp8H7UWFaZj0yNO6bycd5YjMwxa6wIHOLZvWPkidwbgLCsBMetQoGj7DPuAlWa2yGO3H48xmPwjhsSPPCGU5w==",+ "version": "7.18.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz",+ "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==","dev": true,"license": "MIT","dependencies": {"@eslint-community/regexpp": "^4.10.0",- "@typescript-eslint/scope-manager": "8.14.0",- "@typescript-eslint/type-utils": "8.14.0",- "@typescript-eslint/utils": "8.14.0",- "@typescript-eslint/visitor-keys": "8.14.0",+ "@typescript-eslint/scope-manager": "7.18.0",+ "@typescript-eslint/type-utils": "7.18.0",+ "@typescript-eslint/utils": "7.18.0",+ "@typescript-eslint/visitor-keys": "7.18.0","graphemer": "^1.4.0","ignore": "^5.3.1","natural-compare": "^1.4.0","ts-api-utils": "^1.3.0"},"engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ "node": "^18.18.0 || >=20.0.0"},"funding": {"type": "opencollective","url": "https://opencollective.com/typescript-eslint"},"peerDependencies": {- "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0",- "eslint": "^8.57.0 || ^9.0.0"+ "@typescript-eslint/parser": "^7.0.0",+ "eslint": "^8.56.0"},"peerDependenciesMeta": {"typescript": {@@ -3888,27 +3888,27 @@}},"node_modules/@typescript-eslint/parser": {- "version": "8.14.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.14.0.tgz",- "integrity": "sha512-2p82Yn9juUJq0XynBXtFCyrBDb6/dJombnz6vbo6mgQEtWHfvHbQuEa9kAOVIt1c9YFwi7H6WxtPj1kg+80+RA==",+ "version": "7.18.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz",+ "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==","dev": true,"license": "BSD-2-Clause","dependencies": {- "@typescript-eslint/scope-manager": "8.14.0",- "@typescript-eslint/types": "8.14.0",- "@typescript-eslint/typescript-estree": "8.14.0",- "@typescript-eslint/visitor-keys": "8.14.0",+ "@typescript-eslint/scope-manager": "7.18.0",+ "@typescript-eslint/types": "7.18.0",+ "@typescript-eslint/typescript-estree": "7.18.0",+ "@typescript-eslint/visitor-keys": "7.18.0","debug": "^4.3.4"},"engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ "node": "^18.18.0 || >=20.0.0"},"funding": {"type": "opencollective","url": "https://opencollective.com/typescript-eslint"},"peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0"+ "eslint": "^8.56.0"},"peerDependenciesMeta": {"typescript": {@@ -3917,17 +3917,17 @@}},"node_modules/@typescript-eslint/scope-manager": {- "version": "8.14.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.14.0.tgz",- "integrity": "sha512-aBbBrnW9ARIDn92Zbo7rguLnqQ/pOrUguVpbUwzOhkFg2npFDwTgPGqFqE0H5feXcOoJOfX3SxlJaKEVtq54dw==",+ "version": "7.18.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz",+ "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/types": "8.14.0",- "@typescript-eslint/visitor-keys": "8.14.0"+ "@typescript-eslint/types": "7.18.0",+ "@typescript-eslint/visitor-keys": "7.18.0"},"engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ "node": "^18.18.0 || >=20.0.0"},"funding": {"type": "opencollective",@@ -3935,24 +3935,27 @@}},"node_modules/@typescript-eslint/type-utils": {- "version": "8.14.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.14.0.tgz",- "integrity": "sha512-Xcz9qOtZuGusVOH5Uk07NGs39wrKkf3AxlkK79RBK6aJC1l03CobXjJbwBPSidetAOV+5rEVuiT1VSBUOAsanQ==",+ "version": "7.18.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz",+ "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/typescript-estree": "8.14.0",- "@typescript-eslint/utils": "8.14.0",+ "@typescript-eslint/typescript-estree": "7.18.0",+ "@typescript-eslint/utils": "7.18.0","debug": "^4.3.4","ts-api-utils": "^1.3.0"},"engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ "node": "^18.18.0 || >=20.0.0"},"funding": {"type": "opencollective","url": "https://opencollective.com/typescript-eslint"},+ "peerDependencies": {+ "eslint": "^8.56.0"+ },"peerDependenciesMeta": {"typescript": {"optional": true@@ -3960,13 +3963,13 @@}},"node_modules/@typescript-eslint/types": {- "version": "8.14.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.14.0.tgz",- "integrity": "sha512-yjeB9fnO/opvLJFAsPNYlKPnEM8+z4og09Pk504dkqonT02AyL5Z9SSqlE0XqezS93v6CXn49VHvB2G7XSsl0g==",+ "version": "7.18.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz",+ "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==","dev": true,"license": "MIT","engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ "node": "^18.18.0 || >=20.0.0"},"funding": {"type": "opencollective",@@ -3974,23 +3977,23 @@}},"node_modules/@typescript-eslint/typescript-estree": {- "version": "8.14.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.14.0.tgz",- "integrity": "sha512-OPXPLYKGZi9XS/49rdaCbR5j/S14HazviBlUQFvSKz3npr3NikF+mrgK7CFVur6XEt95DZp/cmke9d5i3vtVnQ==",+ "version": "7.18.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz",+ "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==","dev": true,"license": "BSD-2-Clause","dependencies": {- "@typescript-eslint/types": "8.14.0",- "@typescript-eslint/visitor-keys": "8.14.0",+ "@typescript-eslint/types": "7.18.0",+ "@typescript-eslint/visitor-keys": "7.18.0","debug": "^4.3.4",- "fast-glob": "^3.3.2",+ "globby": "^11.1.0","is-glob": "^4.0.3","minimatch": "^9.0.4","semver": "^7.6.0","ts-api-utils": "^1.3.0"},"engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ "node": "^18.18.0 || >=20.0.0"},"funding": {"type": "opencollective",@@ -4029,40 +4032,40 @@}},"node_modules/@typescript-eslint/utils": {- "version": "8.14.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.14.0.tgz",- "integrity": "sha512-OGqj6uB8THhrHj0Fk27DcHPojW7zKwKkPmHXHvQ58pLYp4hy8CSUdTKykKeh+5vFqTTVmjz0zCOOPKRovdsgHA==",+ "version": "7.18.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz",+ "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==","dev": true,"license": "MIT","dependencies": {"@eslint-community/eslint-utils": "^4.4.0",- "@typescript-eslint/scope-manager": "8.14.0",- "@typescript-eslint/types": "8.14.0",- "@typescript-eslint/typescript-estree": "8.14.0"+ "@typescript-eslint/scope-manager": "7.18.0",+ "@typescript-eslint/types": "7.18.0",+ "@typescript-eslint/typescript-estree": "7.18.0"},"engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ "node": "^18.18.0 || >=20.0.0"},"funding": {"type": "opencollective","url": "https://opencollective.com/typescript-eslint"},"peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0"+ "eslint": "^8.56.0"}},"node_modules/@typescript-eslint/visitor-keys": {- "version": "8.14.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.14.0.tgz",- "integrity": "sha512-vG0XZo8AdTH9OE6VFRwAZldNc7qtJ/6NLGWak+BtENuEUXGZgFpihILPiBvKXvJ2nFu27XNGC6rKiwuaoMbYzQ==",+ "version": "7.18.0",+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz",+ "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==","dev": true,"license": "MIT","dependencies": {- "@typescript-eslint/types": "8.14.0",+ "@typescript-eslint/types": "7.18.0","eslint-visitor-keys": "^3.4.3"},"engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ "node": "^18.18.0 || >=20.0.0"},"funding": {"type": "opencollective",@@ -4603,6 +4606,16 @@"integrity": "sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==","dev": true},+ "node_modules/array-union": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",+ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/array.prototype.findlastindex": {"version": "1.2.5","resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz",@@ -6163,6 +6176,19 @@"integrity": "sha512-BlmkSqV0V84E2WnEnoPnwyix57rQxAM5SKJjf4TbYOCGLAWtz8CDH8RIaGOjPgPCXo2Mce3kxSY497OySidY3Q==","license": "BSD-3-Clause"},+ "node_modules/dir-glob": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",+ "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "path-type": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/display-notification": {"version": "2.0.0","resolved": "https://registry.npmjs.org/display-notification/-/display-notification-2.0.0.tgz",@@ -6731,6 +6757,21 @@"semver": "bin/semver.js"}},+ "node_modules/eslint-config-airbnb-typescript": {+ "version": "18.0.0",+ "resolved": "https://registry.npmjs.org/eslint-config-airbnb-typescript/-/eslint-config-airbnb-typescript-18.0.0.tgz",+ "integrity": "sha512-oc+Lxzgzsu8FQyFVa4QFaVKiitTYiiW3frB9KYW5OWdPrqFc7FzxgB20hP4cHMlr+MBzGcLl3jnCOVOydL9mIg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "eslint-config-airbnb-base": "^15.0.0"+ },+ "peerDependencies": {+ "@typescript-eslint/eslint-plugin": "^7.0.0",+ "@typescript-eslint/parser": "^7.0.0",+ "eslint": "^8.56.0"+ }+ },"node_modules/eslint-config-prettier": {"version": "9.1.0","resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",@@ -7987,6 +8028,27 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/globby": {+ "version": "11.1.0",+ "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",+ "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "array-union": "^2.1.0",+ "dir-glob": "^3.0.1",+ "fast-glob": "^3.2.9",+ "ignore": "^5.2.0",+ "merge2": "^1.4.1",+ "slash": "^3.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/google-auth-library": {"version": "9.1.0","resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.1.0.tgz",@@ -12665,6 +12727,16 @@"url": "https://github.com/sponsors/isaacs"}},+ "node_modules/slash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",+ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/slick": {"version": "1.12.2","resolved": "https://registry.npmjs.org/slick/-/slick-1.12.2.tgz",@@ -13377,10 +13449,11 @@}},"node_modules/ts-api-utils": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.3.0.tgz",- "integrity": "sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==",+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.0.tgz",+ "integrity": "sha512-032cPxaEKwM+GT3vA5JXNzIaizx388rhsSW79vGRNGXfRRAdEAn2mvk36PvK5HnOchyWZ7afLEXqYCvPCrzuzQ==","dev": true,+ "license": "MIT","engines": {"node": ">=16"},diff --git a/backend/package.json b/backend/package.jsonindex 18a8952a4..732e91eb5 100644--- a/backend/package.json+++ b/backend/package.json@@ -116,10 +116,11 @@"@types/nodemailer": "^6.4.16","@types/passport-jwt": "^4.0.1","@types/ua-parser-js": "^0.7.39",- "@typescript-eslint/eslint-plugin": "^8.14.0",- "@typescript-eslint/parser": "^8.14.0",+ "@typescript-eslint/eslint-plugin": "^7.18.0",+ "@typescript-eslint/parser": "^7.18.0","eslint": "^8.57.0","eslint-config-airbnb-base": "^15.0.0",+ "eslint-config-airbnb-typescript": "^18.0.0","eslint-config-prettier": "^9.1.0","eslint-plugin-import": "^2.31.0","eslint-plugin-prettier": "^5.2.1",