diff --git a/.eslintrc.json b/.eslintrc.json index 3eab9c6ec..95370249e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,12 +1,12 @@ { "root": true, "ignorePatterns": ["**/*"], - "plugins": ["@nrwl/nx"], + "plugins": ["@nx"], "overrides": [ { "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], "rules": { - "@nrwl/nx/enforce-module-boundaries": [ + "@nx/enforce-module-boundaries": [ "error", { "enforceBuildableLibDependency": true, @@ -23,7 +23,7 @@ }, { "files": ["*.ts", "*.tsx"], - "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:@nrwl/nx/typescript"], + "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier", "plugin:@nx/typescript"], "rules": { "no-empty": "off", "no-useless-escape": "off", @@ -43,7 +43,7 @@ }, { "files": ["*.js", "*.jsx"], - "extends": ["plugin:@nrwl/nx/javascript"], + "extends": ["plugin:@nx/javascript"], "rules": {} }, { @@ -51,6 +51,11 @@ "rules": { "@typescript-eslint/triple-slash-reference": "off" } + }, + { + "files": "*.json", + "parser": "jsonc-eslint-parser", + "rules": {} } ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 5acd7ae98..1358635a7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,10 +1,10 @@ -// Place your settings in this file to overwrite default and user settings. { - "search.exclude": { - "**/node_modules": true, - "**/bower_components": true, - "**/platforms": true, - "**/*.js": true, - "**/*.js.map": true - } -} \ No newline at end of file + "search.exclude": { + "**/node_modules": true, + "**/bower_components": true, + "**/platforms": true, + "**/*.js": true, + "**/*.js.map": true + }, + "eslint.validate": ["json"] +} diff --git a/apps/automated/package.json b/apps/automated/package.json index 9ed1314a9..b1af4dcd2 100644 --- a/apps/automated/package.json +++ b/apps/automated/package.json @@ -15,7 +15,7 @@ "@nativescript/ios": "~8.5.0", "@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz", "circular-dependency-plugin": "^5.2.2", - "typescript": "~4.9.5" + "typescript": "5.1.6" }, "gitHead": "c06800e52ee1a184ea2dffd12a6702aaa43be4e3", "readme": "NativeScript Application" diff --git a/apps/automated/src/pages/package.json b/apps/automated/src/pages/package.json index 711702985..b95dd49cd 100644 --- a/apps/automated/src/pages/package.json +++ b/apps/automated/src/pages/package.json @@ -1,4 +1,4 @@ { - "name": "testsapp", - "main": "app.js" + "name": "testsapp", + "main": "app.js" } diff --git a/apps/automated/src/ui/lifecycle/package.json b/apps/automated/src/ui/lifecycle/package.json index 0792e5bce..948562c8d 100644 --- a/apps/automated/src/ui/lifecycle/package.json +++ b/apps/automated/src/ui/lifecycle/package.json @@ -1,3 +1,3 @@ { - "main": "lifecycle-tests" + "main": "lifecycle-tests" } diff --git a/apps/automated/src/ui/repeater/repeater-tests.ts b/apps/automated/src/ui/repeater/repeater-tests.ts index cfb1a6f91..4ccfb3e10 100644 --- a/apps/automated/src/ui/repeater/repeater-tests.ts +++ b/apps/automated/src/ui/repeater/repeater-tests.ts @@ -474,15 +474,15 @@ export var test_RepeaterItemsGestureBindings = function () { helper.navigateToModuleAndRunTest('ui/repeater/repeaterItems-bindingToGestures-page', null, testFunc); }; -export var test_RepeaterItemsParentBindingsShouldWork = function () { +export var test_RepeaterItemsBindingsShouldWork = function () { var testFunc = function (page: Page) { var repeater = page.getViewById('repeater'); - var expectedText = page.bindingContext['parentViewProperty']; - var testPass = false; + var expectedText = page.bindingContext['items']; + var testPass: string; var eachChildCallback = function (childItem: View) { if (childItem instanceof Label) { - testPass = (