Skip to content

Commit be41e30

Browse files
chore(deps): anguar 16
1 parent 5b17cc1 commit be41e30

9 files changed

Lines changed: 1604 additions & 1489 deletions

File tree

.eslintrc.json

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,38 @@
88
"files": [
99
"*.ts"
1010
],
11-
"parserOptions": {
12-
"project": [
13-
"tsconfig.json",
14-
"e2e/tsconfig.json"
15-
],
16-
"createDefaultProgram": true
17-
},
1811
"extends": [
19-
"plugin:@angular-eslint/ng-cli-compat",
20-
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"plugin:@angular-eslint/recommended",
2115
"plugin:@angular-eslint/template/process-inline-templates"
2216
],
2317
"rules": {
24-
"semi": ["error", "never"]
18+
"@angular-eslint/directive-selector": [
19+
"error",
20+
{
21+
"type": "attribute",
22+
"prefix": "app",
23+
"style": "camelCase"
24+
}
25+
],
26+
"@angular-eslint/component-selector": [
27+
"error",
28+
{
29+
"type": "element",
30+
"prefix": "app",
31+
"style": "kebab-case"
32+
}
33+
]
2534
}
2635
},
2736
{
2837
"files": [
2938
"*.html"
3039
],
3140
"extends": [
32-
"plugin:@angular-eslint/template/recommended"
41+
"plugin:@angular-eslint/template/recommended",
42+
"plugin:@angular-eslint/template/accessibility"
3343
],
3444
"rules": {}
3545
}

package.json

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,57 +15,56 @@
1515
"build:prod": "ng build --project angular-stl-model-viewer --configuration production && cp ./README.md ./dist/angular-stl-model-viewer",
1616
"build:deploy": "ng build --configuration production --project examples && gh-pages -d ./dist/examples",
1717
"test": "ng test --project angular-stl-model-viewer",
18-
"lint": "ng lint",
19-
"postinstall": "ngcc"
18+
"lint": "ng lint"
2019
},
2120
"dependencies": {
22-
"@angular/animations": "^15.1.2",
23-
"@angular/common": "^15.1.2",
24-
"@angular/compiler": "^15.1.2",
25-
"@angular/core": "^15.1.2",
26-
"@angular/forms": "^15.1.2",
27-
"@angular/platform-browser": "^15.1.2",
28-
"@angular/platform-browser-dynamic": "^15.1.2",
29-
"@angular/router": "^15.1.2",
30-
"rxjs": "^7.8.0",
31-
"three": "^0.146.0",
21+
"@angular/animations": "^16.0.0",
22+
"@angular/common": "^16.0.0",
23+
"@angular/compiler": "^16.0.0",
24+
"@angular/core": "^16.0.0",
25+
"@angular/forms": "^16.0.0",
26+
"@angular/platform-browser": "^16.0.0",
27+
"@angular/platform-browser-dynamic": "^16.0.0",
28+
"@angular/router": "^16.0.0",
29+
"rxjs": "^7.8.1",
30+
"three": "^0.152.2",
3231
"tslib": "^2.5.0",
33-
"zone.js": "~0.12.0"
32+
"zone.js": "~0.13.0"
3433
},
3534
"devDependencies": {
36-
"@angular-devkit/architect": "^0.1500.5",
37-
"@angular-devkit/build-angular": "^15.1.3",
38-
"@angular-devkit/core": "^15.1.3",
39-
"@angular-devkit/schematics": "^15.1.3",
40-
"@angular-eslint/builder": "^15.2.0",
41-
"@angular-eslint/eslint-plugin": "^15.2.0",
42-
"@angular-eslint/eslint-plugin-template": "^15.2.0",
43-
"@angular-eslint/schematics": "^15.2.0",
44-
"@angular-eslint/template-parser": "^15.2.0",
45-
"@angular/cli": "^15.1.3",
46-
"@angular/compiler-cli": "^15.1.2",
47-
"@angular/localize": "^15.1.2",
35+
"@angular-devkit/architect": "^0.1600.0",
36+
"@angular-devkit/build-angular": "^16.0.0",
37+
"@angular-devkit/core": "^16.0.0",
38+
"@angular-devkit/schematics": "^16.0.0",
39+
"@angular-eslint/builder": "^16.0.1",
40+
"@angular-eslint/eslint-plugin": "^16.0.1",
41+
"@angular-eslint/eslint-plugin-template": "^16.0.1",
42+
"@angular-eslint/schematics": "^16.0.1",
43+
"@angular-eslint/template-parser": "^16.0.1",
44+
"@angular/cli": "^16.0.0",
45+
"@angular/compiler-cli": "^16.0.0",
46+
"@angular/localize": "^16.0.0",
4847
"@types/jasmine": "^4.3.1",
4948
"@types/jasminewd2": "^2.0.10",
5049
"@types/node": "*",
51-
"@typescript-eslint/eslint-plugin": "^5.49.0",
52-
"@typescript-eslint/parser": "^5.49.0",
53-
"eslint": "^8.33.0",
50+
"@typescript-eslint/eslint-plugin": "^5.59.2",
51+
"@typescript-eslint/parser": "^5.59.2",
52+
"eslint": "^8.39.0",
5453
"eslint-plugin-import": "^2.27.5",
55-
"eslint-plugin-jsdoc": "^39.6.9",
54+
"eslint-plugin-jsdoc": "^43.1.1",
5655
"eslint-plugin-prefer-arrow": "^1.2.3",
57-
"gh-pages": "^4.0.0",
58-
"jasmine-core": "^4.5.0",
56+
"gh-pages": "^5.0.0",
57+
"jasmine-core": "^4.6.0",
5958
"jasmine-spec-reporter": "^7.0.0",
60-
"karma": "^6.4.1",
61-
"karma-chrome-launcher": "^3.1.1",
59+
"karma": "^6.4.2",
60+
"karma-chrome-launcher": "^3.2.0",
6261
"karma-coverage": "^2.2.0",
6362
"karma-jasmine": "^5.1.0",
6463
"karma-jasmine-html-reporter": "^2.0.0",
65-
"ng-packagr": "^15.1.1",
66-
"puppeteer": "^19.6.2",
64+
"ng-packagr": "^16.0.0",
65+
"puppeteer": "^20.1.0",
6766
"rollup": "^2.0.0",
6867
"ts-node": "^10.9.1",
69-
"typescript": "~4.8.2"
68+
"typescript": "~5.0.4"
7069
}
7170
}

projects/angular-stl-model-viewer/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"node": ">= 16"
1515
},
1616
"peerDependencies": {
17-
"@angular/common": "^14.0.0 || ^15.0.0",
18-
"@angular/core": "^14.0.0 || ^15.0.0",
17+
"@angular/common": "^14.0.0 || ^15.0.0 || ^16.0.0",
18+
"@angular/core": "^14.0.0 || ^15.0.0 || ^16.0.0",
1919
"rxjs": "^7.4.0",
2020
"three": "^0.120.0",
21-
"zone.js": "~0.11.4 || ~0.12.0"
21+
"zone.js": "~0.11.4 || ~0.12.0 || ~0.13.0"
2222
},
2323
"dependencies": {
2424
"tslib": "^2.0.1"

projects/angular-stl-model-viewer/src/lib/angular-stl-model-viewer.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, CUSTOM_ELEMENTS_SCHEMA, OnInit, ViewChild, ElementRef } from '@angular/core'
2-
import { ComponentFixture, TestBed, fakeAsync, tick } from '@angular/core/testing'
2+
import { ComponentFixture, TestBed } from '@angular/core/testing'
33

44
import * as THREE from 'three'
55
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'

projects/angular-stl-model-viewer/src/lib/angular-stl-model-viewer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class StlModelViewerComponent implements OnInit, OnDestroy {
156156
async createMesh(
157157
path: string,
158158
meshOptions: MeshOptions = {},
159-
parse: boolean = false
159+
parse = false
160160
): Promise<THREE.Mesh> {
161161
let geometry: THREE.BufferGeometry = null
162162
if (parse) {

projects/angular-stl-model-viewer/src/test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
platformBrowserDynamicTesting
99
} from '@angular/platform-browser-dynamic/testing'
1010

11+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1112
declare const require: {
1213
context(path: string, deep?: boolean, filter?: RegExp): {
1314
<T>(id: string): T

projects/examples/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from '@angular/core'
1+
import { Component } from '@angular/core'
22
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
33

44
import * as THREE from 'three'

projects/examples/src/test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
platformBrowserDynamicTesting
88
} from '@angular/platform-browser-dynamic/testing'
99

10+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1011
declare const require: {
1112
context(path: string, deep?: boolean, filter?: RegExp): {
1213
<T>(id: string): T

0 commit comments

Comments
 (0)