Skip to content

Commit

Permalink
style(lint): lint the source code using prettier (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfprod authored Jun 3, 2024
1 parent 32d2cd4 commit 6190445
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 102 deletions.
41 changes: 10 additions & 31 deletions apps/client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand All @@ -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": {
Expand Down Expand Up @@ -162,28 +147,22 @@
"options": {
"config": ""
},
"outputs": [
"{workspaceRoot}/dist/stylelint/apps/client"
]
"outputs": ["{workspaceRoot}/dist/stylelint/apps/client"]
},
"test": {
"executor": "@nx/jest:jest",
"options": {
"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"]
}
}
}
}
42 changes: 10 additions & 32 deletions apps/documentation/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand All @@ -218,28 +202,22 @@
"options": {
"config": ""
},
"outputs": [
"{workspaceRoot}/dist/stylelint/apps/documentation"
]
"outputs": ["{workspaceRoot}/dist/stylelint/apps/documentation"]
},
"test": {
"executor": "@nx/jest:jest",
"options": {
"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"]
}
}
}
}
36 changes: 9 additions & 27 deletions apps/elements/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -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": {
Expand All @@ -136,28 +124,22 @@
"options": {
"config": ""
},
"outputs": [
"{workspaceRoot}/dist/stylelint/apps/elements"
]
"outputs": ["{workspaceRoot}/dist/stylelint/apps/elements"]
},
"test": {
"executor": "@nx/jest:jest",
"options": {
"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"]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
originX: 'center',
originY: 'bottom',
overlayX: 'center',
overlayY: 'top'
}
overlayY: 'top',
},
]"
>
<mat-icon>navigate_before</mat-icon>
Expand All @@ -23,8 +23,8 @@
originX: 'center',
originY: 'bottom',
overlayX: 'center',
overlayY: 'top'
}
overlayY: 'top',
},
]"
cdkOverlayOrigin
#searchTrigger="cdkOverlayOrigin"
Expand All @@ -41,8 +41,8 @@
originX: 'center',
originY: 'bottom',
overlayX: 'center',
overlayY: 'top'
}
overlayY: 'top',
},
]"
>
<mat-icon>navigate_next</mat-icon>
Expand All @@ -59,8 +59,8 @@
originX: 'center',
originY: 'bottom',
overlayX: 'center',
overlayY: 'top'
}
overlayY: 'top',
},
]"
>
<app-search class="search custom-overlay" (optionSelected)="toggleSearch()"></app-search>
Expand Down
2 changes: 1 addition & 1 deletion libs/client-d3-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"@types/d3": "7.4.3",
"d3": "7.9.0"
}
}
}
2 changes: 1 addition & 1 deletion libs/client-guided-tour/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"@angular/material": "18.0.1",
"@angular/router": "18.0.1"
}
}
}
2 changes: 1 addition & 1 deletion libs/client-pwa-offline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"@angular/material": "18.0.1",
"@angular/router": "18.0.1"
}
}
}
2 changes: 1 addition & 1 deletion libs/client-util-eliza/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
"peerDependencies": {
"@angular/core": "18.0.1"
}
}
}

0 comments on commit 6190445

Please sign in to comment.