Skip to content

Commit b235440

Browse files
committed
iOS - app crashes when plugin stop is called #387 (WIP)
Changes: - updated some of the example-app dependencies (in progress) - configured to use Node v22.16.0
1 parent 9764f79 commit b235440

File tree

7 files changed

+541
-542
lines changed

7 files changed

+541
-542
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.11.1
1+
22.16.0

example-app/eslint.config.mjs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import path from "node:path";
3+
import { fileURLToPath } from "node:url";
4+
import js from "@eslint/js";
5+
import { FlatCompat } from "@eslint/eslintrc";
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
const compat = new FlatCompat({
10+
baseDirectory: __dirname,
11+
recommendedConfig: js.configs.recommended,
12+
allConfig: js.configs.all
13+
});
14+
15+
export default defineConfig([globalIgnores(["projects/**/*"]), {
16+
files: ["**/*.ts"],
17+
18+
extends: compat.extends(
19+
"plugin:@angular-eslint/recommended",
20+
"plugin:@angular-eslint/template/process-inline-templates",
21+
),
22+
23+
languageOptions: {
24+
ecmaVersion: 5,
25+
sourceType: "script",
26+
27+
parserOptions: {
28+
project: ["tsconfig.json"],
29+
createDefaultProgram: true,
30+
},
31+
},
32+
33+
rules: {
34+
"@angular-eslint/component-class-suffix": ["error", {
35+
suffixes: ["Page", "Component"],
36+
}],
37+
38+
"@angular-eslint/component-selector": ["error", {
39+
type: "element",
40+
prefix: "app",
41+
style: "kebab-case",
42+
}],
43+
44+
"@angular-eslint/directive-selector": ["error", {
45+
type: "attribute",
46+
prefix: "app",
47+
style: "camelCase",
48+
}],
49+
},
50+
}, {
51+
files: ["**/*.html"],
52+
extends: compat.extends("plugin:@angular-eslint/template/recommended"),
53+
rules: {},
54+
}]);

example-app/package-lock.json

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example-app/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
"@angular/compiler-cli": "^19.2.5",
6161
"@angular/language-service": "^19.2.5",
6262
"@capacitor/cli": "^7.4.0",
63+
"@eslint/eslintrc": "^3.3.1",
64+
"@eslint/js": "^9.30.0",
6365
"@ionic/angular-toolkit": "^12.2.0",
6466
"@types/jasmine": "^5.1.8",
6567
"@typescript-eslint/eslint-plugin": "^8.35.1",

example-app/src/zone-flags.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
* Prevents Angular change detection from
33
* running with certain Web Component callbacks
44
*/
5-
// eslint-disable-next-line no-underscore-dangle
65
(window as any).__Zone_disable_customElements = true;

0 commit comments

Comments
 (0)