Skip to content

Commit 0e79581

Browse files
authored
Merge pull request #4 from aboudard/2-angular-16-update
fix: badge style & linter
2 parents 6ec4fda + bba5a10 commit 0e79581

File tree

11 files changed

+2532
-358
lines changed

11 files changed

+2532
-358
lines changed

application/ng-shell/.eslintrc.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"plugin:@angular-eslint/recommended",
15+
"plugin:@angular-eslint/template/process-inline-templates"
16+
],
17+
"rules": {
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+
]
34+
}
35+
},
36+
{
37+
"files": [
38+
"*.html"
39+
],
40+
"extends": [
41+
"plugin:@angular-eslint/template/recommended",
42+
"plugin:@angular-eslint/template/accessibility"
43+
],
44+
"rules": {}
45+
}
46+
]
47+
}

application/ng-shell/angular.json

Lines changed: 130 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,131 @@
11
{
2-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3-
"version": 1,
4-
"newProjectRoot": "projects",
5-
"projects": {
6-
"ng-shell": {
7-
"projectType": "application",
8-
"schematics": {
9-
"@schematics/angular:component": {
10-
"style": "scss"
11-
}
12-
},
13-
"root": "",
14-
"sourceRoot": "src",
15-
"prefix": "app",
16-
"architect": {
17-
"build": {
18-
"builder": "ngx-build-plus:browser",
19-
"options": {
20-
"outputPath": "../src/main/resources/static",
21-
"index": "src/index.html",
22-
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
24-
"tsConfig": "tsconfig.app.json",
25-
"inlineStyleLanguage": "scss",
26-
"assets": [
27-
"src/favicon.ico",
28-
"src/assets"
29-
],
30-
"styles": [
31-
"src/styles.scss"
32-
],
33-
"scripts": [],
34-
"extraWebpackConfig": "webpack.config.js",
35-
"commonChunk": false
36-
},
37-
"configurations": {
38-
"production": {
39-
"budgets": [
40-
{
41-
"type": "initial",
42-
"maximumWarning": "500kb",
43-
"maximumError": "1mb"
44-
},
45-
{
46-
"type": "anyComponentStyle",
47-
"maximumWarning": "2kb",
48-
"maximumError": "4kb"
49-
}
50-
],
51-
"fileReplacements": [
52-
{
53-
"replace": "src/environments/environment.ts",
54-
"with": "src/environments/environment.prod.ts"
55-
}
56-
],
57-
"outputHashing": "all",
58-
"extraWebpackConfig": "webpack.prod.config.js"
59-
},
60-
"development": {
61-
"buildOptimizer": false,
62-
"optimization": false,
63-
"vendorChunk": true,
64-
"extractLicenses": false,
65-
"sourceMap": true,
66-
"namedChunks": true
67-
}
68-
},
69-
"defaultConfiguration": "production"
70-
},
71-
"serve": {
72-
"builder": "ngx-build-plus:dev-server",
73-
"configurations": {
74-
"production": {
75-
"browserTarget": "ng-shell:build:production",
76-
"extraWebpackConfig": "webpack.prod.config.js"
77-
},
78-
"development": {
79-
"browserTarget": "ng-shell:build:development"
80-
}
81-
},
82-
"defaultConfiguration": "development",
83-
"options": {
84-
"port": 4200,
85-
"publicHost": "http://localhost:4200",
86-
"extraWebpackConfig": "webpack.config.js"
87-
}
88-
},
89-
"extract-i18n": {
90-
"builder": "ngx-build-plus:extract-i18n",
91-
"options": {
92-
"browserTarget": "ng-shell:build",
93-
"extraWebpackConfig": "webpack.config.js"
94-
}
95-
},
96-
"test": {
97-
"builder": "@angular-devkit/build-angular:karma",
98-
"options": {
99-
"main": "src/test.ts",
100-
"polyfills": "src/polyfills.ts",
101-
"tsConfig": "tsconfig.spec.json",
102-
"karmaConfig": "karma.conf.js",
103-
"inlineStyleLanguage": "scss",
104-
"assets": [
105-
"src/favicon.ico",
106-
"src/assets"
107-
],
108-
"styles": [
109-
"src/styles.scss"
110-
],
111-
"scripts": []
112-
}
113-
}
114-
}
115-
}
116-
}
117-
}
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"ng-shell": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "ngx-build-plus:browser",
19+
"options": {
20+
"outputPath": "../src/main/resources/static",
21+
"index": "src/index.html",
22+
"main": "src/main.ts",
23+
"polyfills": "src/polyfills.ts",
24+
"tsConfig": "tsconfig.app.json",
25+
"inlineStyleLanguage": "scss",
26+
"assets": [
27+
"src/favicon.ico",
28+
"src/assets"
29+
],
30+
"styles": [
31+
"src/styles.scss"
32+
],
33+
"scripts": [],
34+
"extraWebpackConfig": "webpack.config.js",
35+
"commonChunk": false
36+
},
37+
"configurations": {
38+
"production": {
39+
"budgets": [
40+
{
41+
"type": "initial",
42+
"maximumWarning": "500kb",
43+
"maximumError": "1mb"
44+
},
45+
{
46+
"type": "anyComponentStyle",
47+
"maximumWarning": "2kb",
48+
"maximumError": "4kb"
49+
}
50+
],
51+
"fileReplacements": [
52+
{
53+
"replace": "src/environments/environment.ts",
54+
"with": "src/environments/environment.prod.ts"
55+
}
56+
],
57+
"outputHashing": "all",
58+
"extraWebpackConfig": "webpack.prod.config.js"
59+
},
60+
"development": {
61+
"buildOptimizer": false,
62+
"optimization": false,
63+
"vendorChunk": true,
64+
"extractLicenses": false,
65+
"sourceMap": true,
66+
"namedChunks": true
67+
}
68+
},
69+
"defaultConfiguration": "production"
70+
},
71+
"serve": {
72+
"builder": "ngx-build-plus:dev-server",
73+
"configurations": {
74+
"production": {
75+
"browserTarget": "ng-shell:build:production",
76+
"extraWebpackConfig": "webpack.prod.config.js"
77+
},
78+
"development": {
79+
"browserTarget": "ng-shell:build:development"
80+
}
81+
},
82+
"defaultConfiguration": "development",
83+
"options": {
84+
"port": 4200,
85+
"publicHost": "http://localhost:4200",
86+
"extraWebpackConfig": "webpack.config.js"
87+
}
88+
},
89+
"extract-i18n": {
90+
"builder": "ngx-build-plus:extract-i18n",
91+
"options": {
92+
"browserTarget": "ng-shell:build",
93+
"extraWebpackConfig": "webpack.config.js"
94+
}
95+
},
96+
"test": {
97+
"builder": "@angular-devkit/build-angular:karma",
98+
"options": {
99+
"main": "src/test.ts",
100+
"polyfills": "src/polyfills.ts",
101+
"tsConfig": "tsconfig.spec.json",
102+
"karmaConfig": "karma.conf.js",
103+
"inlineStyleLanguage": "scss",
104+
"assets": [
105+
"src/favicon.ico",
106+
"src/assets"
107+
],
108+
"styles": [
109+
"src/styles.scss"
110+
],
111+
"scripts": []
112+
}
113+
},
114+
"lint": {
115+
"builder": "@angular-eslint/builder:lint",
116+
"options": {
117+
"lintFilePatterns": [
118+
"src/**/*.ts",
119+
"src/**/*.html"
120+
]
121+
}
122+
}
123+
}
124+
}
125+
},
126+
"cli": {
127+
"schematicCollections": [
128+
"@angular-eslint/schematics"
129+
]
130+
}
131+
}

0 commit comments

Comments
 (0)