Skip to content

Commit 1b83f79

Browse files
authored
Upgrade to Angular 13 (#111)
* feat: step 1 of angular 13 upgrade * feat: step 2 of angular 13 upgrade * feat: step 3 of angular 13 upgrade * feat: dependency and theme updates * fix: correct linting issues
1 parent 078c5fe commit 1b83f79

File tree

17 files changed

+27226
-11783
lines changed

17 files changed

+27226
-11783
lines changed

.eslintrc.json

+16-15
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"root": true,
33
"ignorePatterns": [
4-
"projects/**/*",
5-
"e2e/**/*"
4+
"projects/**/*"
65
],
76
"overrides": [
87
{
@@ -11,29 +10,31 @@
1110
],
1211
"parserOptions": {
1312
"project": [
14-
"tsconfig.json",
15-
"e2e/tsconfig.json"
13+
"tsconfig.json"
1614
],
1715
"createDefaultProgram": true
1816
},
1917
"extends": [
20-
"plugin:@angular-eslint/ng-cli-compat",
21-
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
18+
"plugin:@angular-eslint/recommended",
2219
"plugin:@angular-eslint/template/process-inline-templates"
2320
],
2421
"rules": {
25-
"@typescript-eslint/explicit-member-accessibility": [
26-
"off",
22+
"@angular-eslint/directive-selector": [
23+
"error",
2724
{
28-
"accessibility": "explicit"
25+
"type": "attribute",
26+
"prefix": "app",
27+
"style": "camelCase"
2928
}
3029
],
31-
"arrow-parens": [
32-
"off",
33-
"always"
34-
],
35-
"import/order": "off",
36-
"no-console": "off"
30+
"@angular-eslint/component-selector": [
31+
"error",
32+
{
33+
"type": "element",
34+
"prefix": "app",
35+
"style": "kebab-case"
36+
}
37+
]
3738
}
3839
},
3940
{

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ speed-measure-plugin.json
3333
.history/*
3434

3535
# misc
36+
/.angular/cache
3637
/.sass-cache
3738
/.nyc_output
3839
/connect.lock

angular.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,8 @@
122122
}
123123
}
124124
},
125-
"defaultProject": "OpenAPIVisualiser"
125+
"defaultProject": "OpenAPIVisualiser",
126+
"cli": {
127+
"defaultCollection": "@angular-eslint/schematics"
128+
}
126129
}

cypress/coverage.webpack.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
rules: [
44
{
55
test: /\.(js|ts)$/,
6-
loader: 'istanbul-instrumenter-loader',
6+
loader: '@jsdevtools/coverage-istanbul-loader',
77
options: { esModules: true },
88
enforce: 'post',
99
include: require('path').join(__dirname, '..', 'src'),
@@ -15,4 +15,4 @@ module.exports = {
1515
}
1616
]
1717
}
18-
};
18+
};

0 commit comments

Comments
 (0)