Skip to content

Commit 26bbc9f

Browse files
feat(deps): update angular 14 (#40)
1 parent 242394e commit 26bbc9f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+21485
-16874
lines changed

.browserslistrc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
# For additional information regarding the format and rule options, please see:
33
# https://github.com/browserslist/browserslist#queries
44

5+
# For the full list of supported browsers by the Angular framework, please see:
6+
# https://angular.io/guide/browser-support
7+
58
# You can see what browsers were selected by your queries by running:
69
# npx browserslist
710

8-
> 0.5%
9-
last 2 versions
11+
last 1 Chrome version
12+
last 1 Firefox version
13+
last 2 Edge major versions
14+
last 2 Safari major versions
15+
last 2 iOS major versions
1016
Firefox ESR
11-
not dead
12-
not IE 9-11 # For IE 9-11 support, remove 'not'.

.circleci/config.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
version: 2
1+
version: 2.1
2+
orbs:
3+
# https://circleci.com/developer/orbs/orb/circleci/browser-tools
4+
browser-tools: circleci/[email protected]
25
jobs:
36
build:
47
working_directory: ~/app
58
docker:
6-
- image: circleci/node:14.5-browsers
7-
environment:
8-
- CHROME_BIN: "/usr/bin/google-chrome"
9+
# https://circleci.com/developer/images/image/cimg/node
10+
- image: cimg/node:14.15.5-browsers
911
steps:
12+
- browser-tools/install-chrome
13+
- browser-tools/install-chromedriver
14+
- checkout
1015
- run:
1116
name: Print environment versions
1217
command: |
1318
NPM_V=$(npm -v)
1419
echo npm version':' $NPM_V
15-
- checkout
20+
node --version
21+
google-chrome --version
1622
- restore_cache:
1723
key: dependency-cache-{{ checksum "package.json" }}
1824
- run:
@@ -33,4 +39,4 @@ jobs:
3339
command: npm test -- --watch=false --code-coverage
3440
- store_artifacts:
3541
path: coverage
36-
prefix: coverage
42+
prefix: coverage

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ indent_size = 4
55
[*.{js,ts}]
66
charset = utf-8
77
trim_trailing_whitespace = true
8+
quote_type = double
89

910
[*.{json,yml,csproj,md}]
1011
indent_size = 2

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"plugins": [
7+
"ban",
8+
"import",
9+
"deprecation"
10+
],
11+
"overrides": [
12+
{
13+
"files": [
14+
"*.ts"
15+
],
16+
"parserOptions": {
17+
"project": [
18+
"tsconfig.json"
19+
],
20+
"createDefaultProgram": true
21+
},
22+
"extends": [
23+
"plugin:@angular-eslint/recommended",
24+
"plugin:@angular-eslint/template/process-inline-templates"
25+
],
26+
"rules": {
27+
"@angular-eslint/directive-selector": [
28+
"error",
29+
{
30+
"type": "attribute",
31+
"prefix": "app",
32+
"style": "camelCase"
33+
}
34+
],
35+
"@angular-eslint/component-selector": [
36+
"error",
37+
{
38+
"type": "element",
39+
"prefix": "app",
40+
"style": "kebab-case"
41+
}
42+
],
43+
"@typescript-eslint/array-type": ["error", {
44+
"default": "array"
45+
}],
46+
"@typescript-eslint/consistent-type-assertions": "error",
47+
"@typescript-eslint/consistent-type-definitions": "error",
48+
"@typescript-eslint/explicit-member-accessibility": ["error", {
49+
"accessibility": "no-public"
50+
}],
51+
"@typescript-eslint/indent": ["error", "tab"],
52+
"@typescript-eslint/member-delimiter-style": [
53+
"error",
54+
{
55+
"singleline": {
56+
"delimiter": "comma",
57+
"requireLast": false
58+
},
59+
"multiline": {
60+
"delimiter": "comma",
61+
"requireLast": false
62+
},
63+
"overrides": {
64+
"interface": {
65+
"singleline": {
66+
"delimiter": "semi",
67+
"requireLast": true
68+
},
69+
"multiline": {
70+
"delimiter": "semi",
71+
"requireLast": true
72+
}
73+
}
74+
}
75+
}
76+
],
77+
"@typescript-eslint/member-ordering": [
78+
"error",
79+
{
80+
"default": [
81+
"public-static-field",
82+
"protected-static-field",
83+
"private-static-field",
84+
"public-instance-field",
85+
"protected-instance-field",
86+
"private-instance-field",
87+
"constructor",
88+
"public-static-method",
89+
"protected-static-method",
90+
"private-static-method",
91+
"public-instance-method",
92+
"protected-instance-method",
93+
"private-instance-method"
94+
]
95+
}
96+
],
97+
"@typescript-eslint/no-duplicate-imports": ["error"],
98+
"@typescript-eslint/no-empty-function": "error",
99+
"@typescript-eslint/no-inferrable-types": "error",
100+
"@typescript-eslint/no-redeclare": ["error"],
101+
"@typescript-eslint/no-shadow": ["error"],
102+
"@typescript-eslint/prefer-for-of": "error",
103+
"@typescript-eslint/quotes": ["error", "double", {
104+
"allowTemplateLiterals": true
105+
}],
106+
"@typescript-eslint/semi": ["error", "always"],
107+
"@typescript-eslint/space-before-function-paren": [
108+
"error",
109+
{
110+
"anonymous": "always",
111+
"named": "never",
112+
"asyncArrow": "always"
113+
}
114+
],
115+
"arrow-body-style": "error",
116+
"arrow-parens": [
117+
"error",
118+
"as-needed"
119+
],
120+
"brace-style": [
121+
"error",
122+
"1tbs",
123+
{
124+
"allowSingleLine": true
125+
}
126+
],
127+
"curly": "error",
128+
"dot-notation": "error",
129+
"eol-last": "error",
130+
"eqeqeq": [
131+
"error",
132+
"smart"
133+
],
134+
"getter-return": "error",
135+
"grouped-accessor-pairs": [
136+
"error",
137+
"getBeforeSet"
138+
],
139+
"guard-for-in": "error",
140+
"id-blacklist": "error",
141+
"id-match": "error",
142+
"max-len": [
143+
"error",
144+
{
145+
"code": 140,
146+
"ignoreUrls": true
147+
}
148+
],
149+
"max-statements-per-line": "error",
150+
"no-bitwise": "error",
151+
"no-caller": "error",
152+
"no-debugger": "error",
153+
"no-empty": "error",
154+
"no-eval": "error",
155+
"no-multiple-empty-lines": [
156+
"error",
157+
{
158+
"max": 2
159+
}
160+
],
161+
"no-new-wrappers": "error",
162+
"no-throw-literal": "error",
163+
"no-trailing-spaces": "error",
164+
"no-undef-init": "error",
165+
"no-unused-expressions": [
166+
"error",
167+
{
168+
"allowTernary": true
169+
}
170+
],
171+
"no-unused-labels": "error",
172+
"no-var": "error",
173+
"object-curly-spacing": [
174+
"error",
175+
"always"
176+
],
177+
"object-shorthand": "error",
178+
"padded-blocks": [
179+
"error",
180+
{
181+
"classes": "always"
182+
}
183+
],
184+
"prefer-const": "error",
185+
"prefer-template": "error",
186+
"quote-props": [
187+
"error",
188+
"as-needed"
189+
],
190+
"radix": "error",
191+
"spaced-comment": [
192+
"error",
193+
"always",
194+
{
195+
"markers": [
196+
"/"
197+
],
198+
"exceptions": [
199+
"*"
200+
]
201+
}
202+
],
203+
"use-isnan": "error",
204+
"ban/ban": [
205+
"error",
206+
{
207+
"name": ["_", "first"],
208+
"message": "Prefer _.head instead"
209+
},
210+
{
211+
"name": ["_", "isUndefined"],
212+
"message": "Prefer x === undefined instead"
213+
}
214+
],
215+
"deprecation/deprecation": "warn"
216+
}
217+
},
218+
{
219+
"files": [
220+
"*.html"
221+
],
222+
"extends": [
223+
"plugin:@angular-eslint/template/recommended"
224+
// "./node_modules/@ssv/tools/config/angular-recommended.json"
225+
],
226+
"rules": {}
227+
}
228+
]
229+
}

.gitignore

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,42 @@
11
# See http://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
3+
# Compiled output
44
/dist
55
/tmp
66
/out-tsc
7-
# Only exists if Bazel was run
87
/bazel-out
98

10-
# dependencies
9+
# Node
1110
/node_modules
12-
13-
# profiling files
14-
chrome-profiler-events*.json
15-
speed-measure-plugin*.json
11+
npm-debug.log
12+
yarn-error.log
1613

1714
# IDEs and editors
18-
/.idea
15+
.idea/
1916
.project
2017
.classpath
2118
.c9/
2219
*.launch
2320
.settings/
2421
*.sublime-workspace
2522

26-
# IDE - VSCode
23+
# Visual Studio Code
2724
.vscode/*
2825
!.vscode/settings.json
2926
!.vscode/tasks.json
3027
!.vscode/launch.json
3128
!.vscode/extensions.json
3229
.history/*
3330

34-
# misc
35-
/.sass-cache
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
3634
/connect.lock
3735
/coverage
3836
/libpeerconnection.log
39-
npm-debug.log
40-
yarn-error.log
4137
testem.log
4238
/typings
4339

44-
# System Files
40+
# System files
4541
.DS_Store
4642
Thumbs.db

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3+
"recommendations": ["angular.ng-template"]
4+
}

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3+
"version": "0.2.0",
4+
"configurations": [
5+
{
6+
"name": "ng serve",
7+
"type": "pwa-chrome",
8+
"request": "launch",
9+
"preLaunchTask": "npm: start",
10+
"url": "http://localhost:4200/"
11+
},
12+
{
13+
"name": "ng test",
14+
"type": "chrome",
15+
"request": "launch",
16+
"preLaunchTask": "npm: test",
17+
"url": "http://localhost:9876/debug.html"
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)