Skip to content

Commit

Permalink
update to ng16 + standalone component
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebolon committed May 28, 2023
1 parent b1b0bbd commit e6751dd
Show file tree
Hide file tree
Showing 31 changed files with 4,976 additions and 3,024 deletions.
146 changes: 83 additions & 63 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,63 +1,83 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"rules": {
"max-len": ["error", { "code": 120, "tabWidth": 2 }]
},
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:prettier/recommended"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"semi": ["error", "always"]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
]
},
{
"files": ["*.html"],
"excludedFiles": ["*inline-template-*.component.html"],
"extends": ["plugin:prettier/recommended"],
"rules": {
"prettier/prettier": ["error", { "parser": "angular" }]
}
}
]
}
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"rules": {
"max-len": [
"error",
{
"code": 120,
"tabWidth": 2
}
]
},
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates",
"plugin:prettier/recommended"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"semi": [
"error",
"always"
]
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
]
},
{
"files": [
"*.html"
],
"excludedFiles": [
"*inline-template-*.component.html"
],
"extends": [
"plugin:prettier/recommended"
],
"rules": {
"prettier/prettier": [
"error",
{
"parser": "angular"
}
]
}
}
]
}
6 changes: 4 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@
"tsConfig": "tsconfig.server.json",
"optimization": false,
"sourceMap": true,
"extractLicenses": false
"extractLicenses": false,
"buildOptimizer": false
},
"configurations": {
"production": {
Expand All @@ -135,7 +136,8 @@
],
"optimization": true,
"sourceMap": false,
"extractLicenses": true
"extractLicenses": true,
"buildOptimizer": true
}
},
"defaultConfiguration": "production"
Expand Down
Loading

0 comments on commit e6751dd

Please sign in to comment.