Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Fix package.json (#1187)

Leendert de Borst70208eb81a26
diff --git a/apps/mobile-app/eslint.config.js b/apps/mobile-app/eslint.config.mjs
similarity index 87%
rename from apps/mobile-app/eslint.config.js
rename to apps/mobile-app/eslint.config.mjs
index 4992c65ff..b37ab40ad 100644
--- a/apps/mobile-app/eslint.config.js
+++ b/apps/mobile-app/eslint.config.mjs
@@ -5,27 +5,22 @@ import reactPlugin from "eslint-plugin-react";
import reactHooksPlugin from "eslint-plugin-react-hooks";
import importPlugin from "eslint-plugin-import";
import jsdocPlugin from "eslint-plugin-jsdoc";
-import stylistic from '@stylistic/eslint-plugin';
import globals from 'globals';
export default [
{
ignores: [
- "metro.config.js",
+ "eslint.config.js",
+ "**/metro.config.js",
"**/dist/**",
+ "**/ios/**",
+ "**/android/**",
+ "**/coverage/**",
"node_modules/**",
"src/utils/dist/**",
- "coverage/**",
]
},
- {
- files: ["app/**/*.js"],
- ...js.configs.recommended,
- languageOptions: {
- ecmaVersion: "latest",
- sourceType: "module",
- },
- },
+ js.configs.recommended,
{
files: ["app/**/*.{ts,tsx}"],
languageOptions: {
@@ -44,7 +39,6 @@ export default [
"react-hooks": reactHooksPlugin,
"import": importPlugin,
"jsdoc": jsdocPlugin,
- "@stylistic": stylistic,
},
rules: {
...tsPlugin.configs.recommended.rules,
@@ -63,7 +57,20 @@ export default [
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}],
- "@stylistic/indent": ["error", 2],
+ "indent": ["error", 2, {
+ "SwitchCase": 1,
+ "VariableDeclarator": 1,
+ "outerIIFEBody": 1,
+ "MemberExpression": 1,
+ "FunctionDeclaration": { "parameters": 1, "body": 1 },
+ "FunctionExpression": { "parameters": 1, "body": 1 },
+ "CallExpression": { "arguments": 1 },
+ "ArrayExpression": 1,
+ "ObjectExpression": 1,
+ "ImportDeclaration": 1,
+ "flatTernaryExpressions": false,
+ "ignoreComments": false
+ }],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
"no-console": ["error", { allow: ["warn", "error", "info", "debug"] }],
"jsdoc/require-jsdoc": ["error", {
@@ -166,6 +173,7 @@ export default [
...globals.node,
NodeJS: true,
chrome: 'readonly',
+ React: 'readonly',
}
}
}
diff --git a/apps/mobile-app/package-lock.json b/apps/mobile-app/package-lock.json
index c9c4cab16..397ec752a 100644
--- a/apps/mobile-app/package-lock.json
+++ b/apps/mobile-app/package-lock.json
@@ -76,7 +76,7 @@
"@types/yup": "^0.29.14",
"eslint": "^9.35.0",
"eslint-config-expo": "~9.2.0",
- "eslint-plugin-jsdoc": "^55.0.5",
+ "eslint-plugin-jsdoc": "^55.2.0",
"eslint-plugin-react-native": "^5.0.0",
"globals": "^16.3.0",
"jest": "^29.2.1",
@@ -1641,9 +1641,9 @@
}
},
"node_modules/@es-joy/jsdoccomment": {
- "version": "0.56.0",
- "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.56.0.tgz",
- "integrity": "sha512-c6EW+aA1w2rjqOMjbL93nZlwxp6c1Ln06vTYs5FjRRhmJXK8V/OrSXdT+pUr4aRYgjCgu8/OkiZr0tzeVrRSbw==",
+ "version": "0.57.0",
+ "resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.57.0.tgz",
+ "integrity": "sha512-M4isJXgy+ZLXvt9EFLHuG5+6Q8hl1iSn3ZnO5R+DiPLUBvsTOh93fZ9X/X1z3l6/pmq3STZtqrEAi6SaPzB4AQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1651,7 +1651,7 @@
"@typescript-eslint/types": "^8.42.0",
"comment-parser": "1.4.1",
"esquery": "^1.6.0",
- "jsdoc-type-pratt-parser": "~5.1.0"
+ "jsdoc-type-pratt-parser": "~5.2.0"
},
"engines": {
"node": ">=20.11.0"
@@ -8400,13 +8400,13 @@
}
},
"node_modules/eslint-plugin-jsdoc": {
- "version": "55.1.1",
- "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-55.1.1.tgz",
- "integrity": "sha512-SpWyvOltGAd7ievULVORJbyRU98rkIyIpiyjiAZ60mnKZSOu79oDUH4C2vPiCWK0hgj+BSwlOgbJ0enMaqi+/g==",
+ "version": "55.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-55.2.0.tgz",
+ "integrity": "sha512-WAmUy+MdkNEqbMeyTFUED4+LfgeuP9sDQ3Ad19VE6c6ZXOjBdyG9BGDpYKf37LPMvwppoSapZFp4ry82MdJePA==",
"dev": true,
"license": "BSD-3-Clause",
"dependencies": {
- "@es-joy/jsdoccomment": "~0.56.0",
+ "@es-joy/jsdoccomment": "~0.57.0",
"are-docs-informative": "^0.0.2",
"comment-parser": "1.4.1",
"debug": "^4.4.1",
@@ -11768,9 +11768,9 @@
"license": "0BSD"
},
"node_modules/jsdoc-type-pratt-parser": {
- "version": "5.1.1",
- "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-5.1.1.tgz",
- "integrity": "sha512-DYYlVP1fe4QBMh2xTIs20/YeTz2GYVbWAEZweHSZD+qQ/Cx2d5RShuhhsdk64eTjNq0FeVnteP/qVOgaywSRbg==",
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-5.2.0.tgz",
+ "integrity": "sha512-qJmErzgL4DLj4lyRkDWnEXZRNu3X3CJxVKKhuUPwqPFMiJV6K7/6O//D2Uf+rRi6+qTPgHWxDAgfGllEXoGkMA==",
"dev": true,
"license": "MIT",
"engines": {
diff --git a/apps/mobile-app/package.json b/apps/mobile-app/package.json
index 6e0e55998..b8e6bf374 100644
--- a/apps/mobile-app/package.json
+++ b/apps/mobile-app/package.json
@@ -2,7 +2,6 @@
"name": "aliasvault-mobile-app",
"main": "expo-router/entry",
"version": "0.0.0",
- "type": "module",
"scripts": {
"start": "expo start",
"android": "expo run:android",
@@ -58,6 +57,8 @@
"expo-web-browser": "~14.2.0",
"fbemitter": "^3.0.0",
"i18next": "^25.3.2",
+ "jest": "~29.7.0",
+ "jest-expo": "~53.0.10",
"otpauth": "^9.4.0",
"react": "19.0.0",
"react-hook-form": "^7.56.1",
@@ -78,9 +79,7 @@
"react-native-toast-message": "^2.2.1",
"react-native-webview": "13.13.5",
"secure-remote-password": "github:LinusU/secure-remote-password#73e5f732b6ca0cdbdc19da1a0c5f48cdbad2cbf0",
- "yup": "^1.6.1",
- "jest-expo": "~53.0.10",
- "jest": "~29.7.0"
+ "yup": "^1.6.1"
},
"devDependencies": {
"@babel/core": "^7.25.2",
@@ -98,7 +97,7 @@
"@types/yup": "^0.29.14",
"eslint": "^9.35.0",
"eslint-config-expo": "~9.2.0",
- "eslint-plugin-jsdoc": "^55.0.5",
+ "eslint-plugin-jsdoc": "^55.2.0",
"eslint-plugin-react-native": "^5.0.0",
"globals": "^16.3.0",
"jest": "^29.2.1",