@eui/tools 5.3.27 → 5.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
5.3.
|
|
1
|
+
5.3.28
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 5.3.28 (2022-07-11)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* migrate to tslint - EUI-3809 [EUI-3809](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-3809) ([c830f8d4](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/c830f8d4c2a403cd60d743f78924349a4f278edb))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 5.3.27 (2022-06-29)
|
|
2
11
|
|
|
3
12
|
##### Bug Fixes
|
package/package.json
CHANGED
|
@@ -238,6 +238,16 @@ const angularProjectDefV13 = {
|
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
240
|
"architect": {
|
|
241
|
+
"lint": {
|
|
242
|
+
"builder": "@angular-eslint/builder:lint",
|
|
243
|
+
"options": {
|
|
244
|
+
"lintFilePatterns": [
|
|
245
|
+
"apps/@project.name@/**/*.ts",
|
|
246
|
+
"apps/@project.name@/**/*.html"
|
|
247
|
+
],
|
|
248
|
+
"eslintConfig": "apps/@project.name@/.eslintrc.json"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
241
251
|
"build": {
|
|
242
252
|
"builder": "@angular-devkit/build-angular:browser",
|
|
243
253
|
"options": {
|
|
@@ -390,6 +400,16 @@ const angularProjectDefV14 = {
|
|
|
390
400
|
}
|
|
391
401
|
},
|
|
392
402
|
"architect": {
|
|
403
|
+
"lint": {
|
|
404
|
+
"builder": "@angular-eslint/builder:lint",
|
|
405
|
+
"options": {
|
|
406
|
+
"lintFilePatterns": [
|
|
407
|
+
"apps/@project.name@/**/*.ts",
|
|
408
|
+
"apps/@project.name@/**/*.html"
|
|
409
|
+
],
|
|
410
|
+
"eslintConfig": "apps/@project.name@/.eslintrc.json"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
393
413
|
"build": {
|
|
394
414
|
"builder": "@angular-devkit/build-angular:browser",
|
|
395
415
|
"options": {
|
|
@@ -1102,6 +1122,14 @@ const angularPackageSubEntryDef = {
|
|
|
1102
1122
|
"tsConfig": "packages/eui/packages/components/tsconfig.lib.json"
|
|
1103
1123
|
}
|
|
1104
1124
|
}
|
|
1125
|
+
},
|
|
1126
|
+
"test": {
|
|
1127
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
1128
|
+
"options": {
|
|
1129
|
+
"main": "packages/eui/packages/components/@subEntry.path@/test.ts",
|
|
1130
|
+
"tsConfig": "packages/eui/packages/components/@subEntry.path@/tsconfig.spec.json",
|
|
1131
|
+
"karmaConfig": "packages/eui/packages/components/@subEntry.path@/karma.conf.js"
|
|
1132
|
+
}
|
|
1105
1133
|
}
|
|
1106
1134
|
}
|
|
1107
1135
|
};
|
|
@@ -1113,6 +1141,16 @@ const angularPackageDefV13 = {
|
|
|
1113
1141
|
"projectType": "library",
|
|
1114
1142
|
"prefix": "lib",
|
|
1115
1143
|
"architect": {
|
|
1144
|
+
"lint": {
|
|
1145
|
+
"builder": "@angular-eslint/builder:lint",
|
|
1146
|
+
"options": {
|
|
1147
|
+
"lintFilePatterns": [
|
|
1148
|
+
"@path@/@module.name@/**/*.ts",
|
|
1149
|
+
"@path@/@module.name@/**/*.html"
|
|
1150
|
+
],
|
|
1151
|
+
"eslintConfig": "@path@/@module.name@/.eslintrc.json"
|
|
1152
|
+
}
|
|
1153
|
+
},
|
|
1116
1154
|
"build": {
|
|
1117
1155
|
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
1118
1156
|
"options": {
|
|
@@ -1143,6 +1181,16 @@ const angularPackageDefV14 = {
|
|
|
1143
1181
|
"projectType": "library",
|
|
1144
1182
|
"prefix": "lib",
|
|
1145
1183
|
"architect": {
|
|
1184
|
+
"lint": {
|
|
1185
|
+
"builder": "@angular-eslint/builder:lint",
|
|
1186
|
+
"options": {
|
|
1187
|
+
"lintFilePatterns": [
|
|
1188
|
+
"@path@/@module.name@/**/*.ts",
|
|
1189
|
+
"@path@/@module.name@/**/*.html"
|
|
1190
|
+
],
|
|
1191
|
+
"eslintConfig": "@path@/@module.name@/.eslintrc.json"
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1146
1194
|
"build": {
|
|
1147
1195
|
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
1148
1196
|
"options": {
|
|
@@ -46,9 +46,21 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
46
46
|
if (!skipLint) {
|
|
47
47
|
tools.logInfo('Linting...');
|
|
48
48
|
const tsLintPath = path.join(pkg.paths.pkgRootDirectory, 'tslint.json');
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
const esLintPath = path.join(pkg.paths.pkgRootDirectory, '.eslintrc.json');
|
|
50
|
+
|
|
51
|
+
if (tools.isFileExists(tsLintPath)) {
|
|
52
|
+
// TODO: remove TSLint since it's deprecated and should not be used by projects in the future
|
|
53
|
+
tools.logWarning('TSLint is deprecated and will be removed in the future. Consider migrating to ESLint')
|
|
54
|
+
const tsConfigPath = path.join(pkg.paths.pkgRootDirectory, 'tsconfig.lib.json');
|
|
55
|
+
tools.logInfo(`running tslint -c ${tsLintPath} -p ${tsConfigPath}`);
|
|
56
|
+
return tools.runScript(`tslint -c ${tsLintPath} -p ${tsConfigPath} -t verbose`);
|
|
57
|
+
} else if(tools.isFileExists(esLintPath)) {
|
|
58
|
+
// the project path information are located inside the .eslintrc.json
|
|
59
|
+
tools.logInfo(`running ng lint ${pkg.name}`);
|
|
60
|
+
return tools.runScript(`ng lint ${pkg.name}`);
|
|
61
|
+
} else {
|
|
62
|
+
tools.logError(`No ESLint or TSLint configuration found for the project`);
|
|
63
|
+
}
|
|
52
64
|
}
|
|
53
65
|
})
|
|
54
66
|
.then(() => {
|