From 6190445c662c245a1f4acbe8c84487092d6f8297 Mon Sep 17 00:00:00 2001 From: Vadim Date: Mon, 3 Jun 2024 08:39:20 +0300 Subject: [PATCH] style(lint): lint the source code using prettier (#842) --- apps/client/project.json | 41 +++++------------- apps/documentation/project.json | 42 +++++-------------- apps/elements/project.json | 36 ++++------------ .../navigator/navigator.component.html | 16 +++---- libs/client-d3-charts/package.json | 2 +- libs/client-guided-tour/package.json | 2 +- libs/client-pwa-offline/package.json | 2 +- libs/client-util-eliza/package.json | 2 +- 8 files changed, 41 insertions(+), 102 deletions(-) diff --git a/apps/client/project.json b/apps/client/project.json index 52340ea2..fbd852d7 100644 --- a/apps/client/project.json +++ b/apps/client/project.json @@ -4,10 +4,7 @@ "prefix": "app", "projectType": "application", "sourceRoot": "apps/client/src", - "tags": [ - "scope:client", - "type:application" - ], + "tags": ["scope:client", "type:application"], "targets": { "build": { "configurations": { @@ -80,13 +77,8 @@ "optimization": false, "outputHashing": "none", "outputPath": "dist/apps/client", - "polyfills": [ - "apps/client/src/polyfills.ts" - ], - "scripts": [ - "node_modules/dompurify/dist/purify.min.js", - "tools/js/trusted-types.policy.js" - ], + "polyfills": ["apps/client/src/polyfills.ts"], + "scripts": ["node_modules/dompurify/dist/purify.min.js", "tools/js/trusted-types.policy.js"], "sourceMap": true, "styles": [ "node_modules/roboto-fontface/css/roboto/roboto-fontface.css", @@ -113,23 +105,16 @@ "executor": "@angular-eslint/builder:lint", "options": { "eslintConfig": "apps/client/.eslintrc.json", - "lintFilePatterns": [ - "apps/client/**/*.ts", - "apps/client/**/*.html" - ] + "lintFilePatterns": ["apps/client/**/*.ts", "apps/client/**/*.html"] }, - "outputs": [ - "{options.outputFile}" - ] + "outputs": ["{options.outputFile}"] }, "prettier-check": { "executor": "./tools/executors/prettier:check", "options": { "config": "" }, - "outputs": [ - "{workspaceRoot}/dist/prettier/apps/client" - ] + "outputs": ["{workspaceRoot}/dist/prettier/apps/client"] }, "serve": { "configurations": { @@ -162,9 +147,7 @@ "options": { "config": "" }, - "outputs": [ - "{workspaceRoot}/dist/stylelint/apps/client" - ] + "outputs": ["{workspaceRoot}/dist/stylelint/apps/client"] }, "test": { "executor": "@nx/jest:jest", @@ -172,18 +155,14 @@ "jestConfig": "apps/client/jest.config.ts", "passWithNoTests": true }, - "outputs": [ - "{workspaceRoot}/coverage/libs/client" - ] + "outputs": ["{workspaceRoot}/coverage/libs/client"] }, "tsc-check": { "executor": "./tools/executors/tsc:check", "options": { "tsConfig": "apps/client/tsconfig.app.json" }, - "outputs": [ - "{workspaceRoot}/dist/out-tsc/apps/client" - ] + "outputs": ["{workspaceRoot}/dist/out-tsc/apps/client"] } } -} \ No newline at end of file +} diff --git a/apps/documentation/project.json b/apps/documentation/project.json index 1b8f0f2e..3e068295 100644 --- a/apps/documentation/project.json +++ b/apps/documentation/project.json @@ -4,10 +4,7 @@ "prefix": "app", "projectType": "application", "sourceRoot": "apps/documentation/src", - "tags": [ - "scope:documentation", - "type:application" - ], + "tags": ["scope:documentation", "type:application"], "targets": { "build": { "configurations": { @@ -55,11 +52,7 @@ }, "executor": "@nx/angular:application", "options": { - "allowedCommonJsDependencies": [ - "hammerjs", - "memo-decorator", - "moment" - ], + "allowedCommonJsDependencies": ["hammerjs", "memo-decorator", "moment"], "aot": true, "assets": [ "apps/documentation/src/favicon.ico", @@ -116,9 +109,7 @@ }, "outputHashing": "none", "outputPath": "dist/apps/documentation", - "polyfills": [ - "apps/documentation/src/polyfills.ts" - ], + "polyfills": ["apps/documentation/src/polyfills.ts"], "scripts": [ "node_modules/dompurify/dist/purify.min.js", "tools/js/trusted-types.policy.js", @@ -175,23 +166,16 @@ "executor": "@angular-eslint/builder:lint", "options": { "eslintConfig": "apps/documentation/.eslintrc.json", - "lintFilePatterns": [ - "apps/documentation/**/*.ts", - "apps/documentation/**/*.html" - ] + "lintFilePatterns": ["apps/documentation/**/*.ts", "apps/documentation/**/*.html"] }, - "outputs": [ - "{options.outputFile}" - ] + "outputs": ["{options.outputFile}"] }, "prettier-check": { "executor": "./tools/executors/prettier:check", "options": { "config": "" }, - "outputs": [ - "{workspaceRoot}/dist/prettier/apps/documentation" - ] + "outputs": ["{workspaceRoot}/dist/prettier/apps/documentation"] }, "serve": { "configurations": { @@ -218,9 +202,7 @@ "options": { "config": "" }, - "outputs": [ - "{workspaceRoot}/dist/stylelint/apps/documentation" - ] + "outputs": ["{workspaceRoot}/dist/stylelint/apps/documentation"] }, "test": { "executor": "@nx/jest:jest", @@ -228,18 +210,14 @@ "jestConfig": "apps/documentation/jest.config.ts", "passWithNoTests": true }, - "outputs": [ - "{workspaceRoot}/coverage/apps/documentation" - ] + "outputs": ["{workspaceRoot}/coverage/apps/documentation"] }, "tsc-check": { "executor": "./tools/executors/tsc:check", "options": { "tsConfig": "apps/documentation/tsconfig.app.json" }, - "outputs": [ - "{workspaceRoot}/dist/out-tsc/apps/documentation" - ] + "outputs": ["{workspaceRoot}/dist/out-tsc/apps/documentation"] } } -} \ No newline at end of file +} diff --git a/apps/elements/project.json b/apps/elements/project.json index 0177ffd5..cc7ae191 100644 --- a/apps/elements/project.json +++ b/apps/elements/project.json @@ -4,10 +4,7 @@ "prefix": "app", "projectType": "application", "sourceRoot": "apps/elements/src", - "tags": [ - "scope:elements", - "type:application" - ], + "tags": ["scope:elements", "type:application"], "targets": { "build": { "configurations": { @@ -71,9 +68,7 @@ "optimization": false, "outputHashing": "none", "outputPath": "dist/apps/elements", - "polyfills": [ - "apps/elements/src/polyfills.ts" - ], + "polyfills": ["apps/elements/src/polyfills.ts"], "scripts": [], "sourceMap": true, "styles": [ @@ -101,23 +96,16 @@ "executor": "@angular-eslint/builder:lint", "options": { "eslintConfig": "apps/elements/.eslintrc.json", - "lintFilePatterns": [ - "apps/elements/**/*.ts", - "apps/elements/**/*.html" - ] + "lintFilePatterns": ["apps/elements/**/*.ts", "apps/elements/**/*.html"] }, - "outputs": [ - "{options.outputFile}" - ] + "outputs": ["{options.outputFile}"] }, "prettier-check": { "executor": "./tools/executors/prettier:check", "options": { "config": "" }, - "outputs": [ - "{workspaceRoot}/dist/prettier/apps/elements" - ] + "outputs": ["{workspaceRoot}/dist/prettier/apps/elements"] }, "serve": { "configurations": { @@ -136,9 +124,7 @@ "options": { "config": "" }, - "outputs": [ - "{workspaceRoot}/dist/stylelint/apps/elements" - ] + "outputs": ["{workspaceRoot}/dist/stylelint/apps/elements"] }, "test": { "executor": "@nx/jest:jest", @@ -146,18 +132,14 @@ "jestConfig": "apps/elements/jest.config.ts", "passWithNoTests": true }, - "outputs": [ - "{workspaceRoot}/coverage/apps/elements" - ] + "outputs": ["{workspaceRoot}/coverage/apps/elements"] }, "tsc-check": { "executor": "./tools/executors/tsc:check", "options": { "tsConfig": "apps/elements/tsconfig.app.json" }, - "outputs": [ - "{workspaceRoot}/dist/out-tsc/apps/elements" - ] + "outputs": ["{workspaceRoot}/dist/out-tsc/apps/elements"] } } -} \ No newline at end of file +} diff --git a/libs/client-core-components/src/lib/components/navigator/navigator.component.html b/libs/client-core-components/src/lib/components/navigator/navigator.component.html index d34d1c50..aee91239 100644 --- a/libs/client-core-components/src/lib/components/navigator/navigator.component.html +++ b/libs/client-core-components/src/lib/components/navigator/navigator.component.html @@ -7,8 +7,8 @@ originX: 'center', originY: 'bottom', overlayX: 'center', - overlayY: 'top' - } + overlayY: 'top', + }, ]" > navigate_before @@ -23,8 +23,8 @@ originX: 'center', originY: 'bottom', overlayX: 'center', - overlayY: 'top' - } + overlayY: 'top', + }, ]" cdkOverlayOrigin #searchTrigger="cdkOverlayOrigin" @@ -41,8 +41,8 @@ originX: 'center', originY: 'bottom', overlayX: 'center', - overlayY: 'top' - } + overlayY: 'top', + }, ]" > navigate_next @@ -59,8 +59,8 @@ originX: 'center', originY: 'bottom', overlayX: 'center', - overlayY: 'top' - } + overlayY: 'top', + }, ]" > diff --git a/libs/client-d3-charts/package.json b/libs/client-d3-charts/package.json index f09ea64e..22be057c 100644 --- a/libs/client-d3-charts/package.json +++ b/libs/client-d3-charts/package.json @@ -29,4 +29,4 @@ "@types/d3": "7.4.3", "d3": "7.9.0" } -} \ No newline at end of file +} diff --git a/libs/client-guided-tour/package.json b/libs/client-guided-tour/package.json index 0751c76b..b3e17d2f 100644 --- a/libs/client-guided-tour/package.json +++ b/libs/client-guided-tour/package.json @@ -28,4 +28,4 @@ "@angular/material": "18.0.1", "@angular/router": "18.0.1" } -} \ No newline at end of file +} diff --git a/libs/client-pwa-offline/package.json b/libs/client-pwa-offline/package.json index b1740805..2933e238 100644 --- a/libs/client-pwa-offline/package.json +++ b/libs/client-pwa-offline/package.json @@ -26,4 +26,4 @@ "@angular/material": "18.0.1", "@angular/router": "18.0.1" } -} \ No newline at end of file +} diff --git a/libs/client-util-eliza/package.json b/libs/client-util-eliza/package.json index e408bf89..eacc939a 100644 --- a/libs/client-util-eliza/package.json +++ b/libs/client-util-eliza/package.json @@ -25,4 +25,4 @@ "peerDependencies": { "@angular/core": "18.0.1" } -} \ No newline at end of file +}