@eui/tools 6.19.3 → 6.20.1
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 +1 -1
- package/CHANGELOG.md +24 -0
- package/bin/eui-scripts.js +2 -0
- package/bin/scripts/release-package-standalone.js +5 -0
- package/init.js +2 -0
- package/package.json +1 -1
- package/scripts/csdr/audit/yarn.js +15 -2
- package/scripts/csdr/config/angular.js +14 -1
- package/scripts/csdr/config/config-skeletons.js +45 -1
- package/scripts/csdr/config/global.js +16 -4
- package/scripts/csdr/config/packages.js +42 -3
- package/scripts/csdr/config/remotes.js +2 -0
- package/scripts/csdr/init/global.js +8 -2
- package/scripts/csdr/init/packages.js +8 -0
- package/scripts/csdr/init/standalone/18.x/.eslintrc.eui18.standalone.json +133 -0
- package/scripts/csdr/init/standalone/18.x/.eslintrc.json +44 -0
- package/scripts/csdr/init/standalone/18.x/karma.conf.standalone.js +7 -0
- package/scripts/csdr/init/standalone/18.x/tsconfig.lib.standalone.json +34 -0
- package/scripts/csdr/init/standalone/18.x/tsconfig.spec.standalone.json +17 -0
- package/scripts/csdr/init/standalone/18.x/tsconfig.standalone.json +17 -0
- package/scripts/csdr/install/common.js +110 -2
- package/scripts/csdr/install/packages.js +59 -6
- package/scripts/csdr/metadata/package-utils.js +100 -25
- package/scripts/csdr/release/package/common.js +96 -52
- package/scripts/csdr/release/package/release-package-standalone.js +24 -0
- package/scripts/csdr/release/package/release-ui-standalone.js +169 -0
- package/scripts/index.js +2 -0
- package/scripts/utils/changelog-utils.js +25 -15
- package/scripts/utils/clean/clean-utils.js +10 -2
- package/scripts/utils/git-utils.js +10 -6
- package/scripts/utils/notification/config.js +7 -1
- package/scripts/utils/publish/npm.js +18 -4
- package/scripts/utils/sonar/sonar-utils.js +13 -4
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.20.1
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
## 6.20.1 (2024-08-07)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapted skip CI for pipeline git operations - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([d0656022](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/d0656022faa10fce931787be951e53bcbb2e7bd5))
|
|
7
|
+
* adapted injection for standalone pkg build - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([197e954e](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/197e954e0b53f602775e60aec5fab261bd32eb63))
|
|
8
|
+
* adapted pipeline release for standalone package - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([83e9779d](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/83e9779d7c1d2201e32dbfebfa8e20c8ec6ed3ef))
|
|
9
|
+
|
|
10
|
+
* * *
|
|
11
|
+
* * *
|
|
12
|
+
## 6.20.0 (2024-08-06)
|
|
13
|
+
|
|
14
|
+
##### New Features
|
|
15
|
+
|
|
16
|
+
* **other:**
|
|
17
|
+
* adapted for standalone UI package build - outside of CSDR context - EUI-9788 [EUI-9788](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-9788) ([a5722b57](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/a5722b571a3badc537be342565fe1c866962dee5))
|
|
18
|
+
##### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **other:**
|
|
21
|
+
* typo ([8d450274](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/8d45027465fb228e83127678ae33d81ce4a926b9))
|
|
22
|
+
|
|
23
|
+
* * *
|
|
24
|
+
* * *
|
|
1
25
|
## 6.19.3 (2024-07-27)
|
|
2
26
|
|
|
3
27
|
##### Chores
|
package/bin/eui-scripts.js
CHANGED
|
@@ -38,6 +38,7 @@ const scriptIndex = args.findIndex(
|
|
|
38
38
|
x === 'csdr-upgrade-deps' ||
|
|
39
39
|
x === 'csdr-serve-app' ||
|
|
40
40
|
x === 'release-package' ||
|
|
41
|
+
x === 'release-package-standalone' ||
|
|
41
42
|
x === 'release-backend' ||
|
|
42
43
|
x === 'release-app' ||
|
|
43
44
|
x === 'release-app-group' ||
|
|
@@ -87,6 +88,7 @@ switch (script) {
|
|
|
87
88
|
case 'csdr-upgrade-deps':
|
|
88
89
|
case 'csdr-serve-app':
|
|
89
90
|
case 'release-package':
|
|
91
|
+
case 'release-package-standalone':
|
|
90
92
|
case 'release-backend':
|
|
91
93
|
case 'release-app':
|
|
92
94
|
case 'release-app-group':
|
package/init.js
CHANGED
|
@@ -8,6 +8,8 @@ console.log('Init tools package symlink...');
|
|
|
8
8
|
console.log('----------------------------------------------');
|
|
9
9
|
|
|
10
10
|
const nmSrcPath = path.join(process.cwd(), 'node_modules');
|
|
11
|
+
// for testing purpose standalone mode locally
|
|
12
|
+
// const nmSrcPath = path.join('d:/gitlab/zzz-test-package-ui', 'node_modules');
|
|
11
13
|
|
|
12
14
|
const euiNmToolsPath = path.join(nmSrcPath, '@eui', 'tools');
|
|
13
15
|
const eUIToolsPath = path.join(process.cwd(), 'packages', 'eui-tools');
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ const configUtils = require('../config/config-utils');
|
|
|
11
11
|
const initUtils = require('../init/init-utils');
|
|
12
12
|
|
|
13
13
|
// GET ARGS
|
|
14
|
-
const { dryRun } = tools.getArgs();
|
|
14
|
+
const { dryRun, skipAudit } = tools.getArgs();
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -71,6 +71,11 @@ module.exports.audit = (pkg) => {
|
|
|
71
71
|
|
|
72
72
|
let outReport;
|
|
73
73
|
|
|
74
|
+
if (skipAudit) {
|
|
75
|
+
tools.logInfo('Skipping audit...');
|
|
76
|
+
return Promise.resolve();
|
|
77
|
+
}
|
|
78
|
+
|
|
74
79
|
return Promise.resolve()
|
|
75
80
|
// extract the audit summary lines
|
|
76
81
|
.then(() => {
|
|
@@ -128,7 +133,15 @@ module.exports.audit = (pkg) => {
|
|
|
128
133
|
}
|
|
129
134
|
|
|
130
135
|
// getting config options for gates defined
|
|
131
|
-
|
|
136
|
+
let configOptions;
|
|
137
|
+
|
|
138
|
+
if (pkg.standalone) {
|
|
139
|
+
// TODO proceed to gates checks if needed
|
|
140
|
+
// configOptions = configUtils.global.getConfigOptionsStandalone();
|
|
141
|
+
return;
|
|
142
|
+
} else {
|
|
143
|
+
configOptions = configUtils.global.getConfigOptions();
|
|
144
|
+
}
|
|
132
145
|
|
|
133
146
|
// getting local csdr euiVersion
|
|
134
147
|
const euiVersion = configUtils.global.getLocalEuiVersion();
|
|
@@ -38,6 +38,7 @@ const {
|
|
|
38
38
|
angularPackageDefV13,
|
|
39
39
|
angularPackageDefV14,
|
|
40
40
|
angularPackageDefV15,
|
|
41
|
+
angularPackageDefV15Standalone,
|
|
41
42
|
angularElementProjectDef,
|
|
42
43
|
tsConfigDef,
|
|
43
44
|
tsConfigSpecDef,
|
|
@@ -75,6 +76,14 @@ module.exports.checkConfigFiles = (isReset) => {
|
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
|
|
79
|
+
module.exports.checkAngularConfig = () => {
|
|
80
|
+
const angularConfig = path.join(process.cwd(), 'angular.json');
|
|
81
|
+
|
|
82
|
+
if (!tools.isFileExists(angularConfig)) {
|
|
83
|
+
tools.logInfo('Creating angular.json');
|
|
84
|
+
tools.writeJsonFileSync(angularConfig, angularConfigDef);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
78
87
|
|
|
79
88
|
module.exports.registerAngularPackage = (pkg, isReset) => {
|
|
80
89
|
|
|
@@ -98,7 +107,11 @@ module.exports.registerAngularPackage = (pkg, isReset) => {
|
|
|
98
107
|
projectDef = JSON.stringify(angularPackageDefV14);
|
|
99
108
|
}
|
|
100
109
|
if (packageEuiVersionNumber >= 15) {
|
|
101
|
-
|
|
110
|
+
if (pkg.standalone) {
|
|
111
|
+
projectDef = JSON.stringify(angularPackageDefV15Standalone);
|
|
112
|
+
} else {
|
|
113
|
+
projectDef = JSON.stringify(angularPackageDefV15);
|
|
114
|
+
}
|
|
102
115
|
}
|
|
103
116
|
|
|
104
117
|
let srcRoot = '/src', srcRootTesting = '';
|
|
@@ -1907,7 +1907,51 @@ module.exports.angularPackageDefV15 = {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
};
|
|
1909
1909
|
|
|
1910
|
-
|
|
1910
|
+
module.exports.angularPackageDefV15Standalone = {
|
|
1911
|
+
"root": "",
|
|
1912
|
+
"sourceRoot": "src",
|
|
1913
|
+
"projectType": "library",
|
|
1914
|
+
"prefix": "lib",
|
|
1915
|
+
"architect": {
|
|
1916
|
+
"lint": {
|
|
1917
|
+
"builder": "@angular-eslint/builder:lint",
|
|
1918
|
+
"options": {
|
|
1919
|
+
"lintFilePatterns": [
|
|
1920
|
+
"**/*.ts",
|
|
1921
|
+
"**/*.html"
|
|
1922
|
+
],
|
|
1923
|
+
"eslintConfig": ".eslintrc.json"
|
|
1924
|
+
}
|
|
1925
|
+
},
|
|
1926
|
+
"build": {
|
|
1927
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
1928
|
+
"options": {
|
|
1929
|
+
"tsConfig": "tsconfig.lib.standalone.json",
|
|
1930
|
+
"project": "ng-package.json"
|
|
1931
|
+
},
|
|
1932
|
+
"configurations": {
|
|
1933
|
+
"production": {
|
|
1934
|
+
"tsConfig": "tsconfig.lib.standalone.json"
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
},
|
|
1938
|
+
"test": {
|
|
1939
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
1940
|
+
"options": {
|
|
1941
|
+
"polyfills": [
|
|
1942
|
+
"zone.js",
|
|
1943
|
+
"zone.js/testing"
|
|
1944
|
+
],
|
|
1945
|
+
"tsConfig": "tsconfig.spec.standalone.json",
|
|
1946
|
+
"karmaConfig": "karma.conf.standalone.js",
|
|
1947
|
+
"scripts": [
|
|
1948
|
+
"node_modules/quill/dist/quill.js",
|
|
1949
|
+
"node_modules/quill-better-table/dist/quill-better-table.min.js"
|
|
1950
|
+
]
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1911
1955
|
|
|
1912
1956
|
|
|
1913
1957
|
module.exports.angularElementProjectDef = {
|
|
@@ -253,9 +253,7 @@ module.exports.updateConfig = (args = { project, projects, packages, packagesBra
|
|
|
253
253
|
|
|
254
254
|
|
|
255
255
|
|
|
256
|
-
|
|
257
|
-
const config = this.getConfig();
|
|
258
|
-
|
|
256
|
+
const getConvertedOptions = (config) => {
|
|
259
257
|
let configOptions = {
|
|
260
258
|
DEVOPS_METADATA_REPOSITORY: null,
|
|
261
259
|
DEVOPS_METADATA_LOCKS_REPOSITORY: null,
|
|
@@ -459,11 +457,25 @@ module.exports.getConfigOptions = () => {
|
|
|
459
457
|
}
|
|
460
458
|
}
|
|
461
459
|
|
|
462
|
-
|
|
463
460
|
return configOptions;
|
|
464
461
|
}
|
|
465
462
|
|
|
466
463
|
|
|
464
|
+
|
|
465
|
+
module.exports.getConfigOptions = () => {
|
|
466
|
+
const config = this.getConfig();
|
|
467
|
+
|
|
468
|
+
return getConvertedOptions(config);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
module.exports.getConfigOptionsStandalone = () => {
|
|
473
|
+
const config = require(path.join(process.cwd(), '.euirc-config.json'));
|
|
474
|
+
|
|
475
|
+
return getConvertedOptions(config);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
|
|
467
479
|
module.exports.getLocalEuiVersion = () => {
|
|
468
480
|
let euiVersionsLocal = [
|
|
469
481
|
...innerPackages.getLocalPackagesEuiVersion(),
|
|
@@ -121,6 +121,10 @@ module.exports.getPackage = (pkgName, fromCsdrConfig, optional) => {
|
|
|
121
121
|
// optional call should not do anything
|
|
122
122
|
if (!pkg && optional) return;
|
|
123
123
|
|
|
124
|
+
// flagging as CSDR package / non-standalone package
|
|
125
|
+
pkg.csdr = true;
|
|
126
|
+
pkg.standlone = false;
|
|
127
|
+
|
|
124
128
|
// additional pkg infos
|
|
125
129
|
pkg.paths = this.getPackagePaths(pkg);
|
|
126
130
|
pkg.tsConfigFileName = `${path.parse(pkg.paths.tsConfig).name}.json`;
|
|
@@ -176,9 +180,9 @@ module.exports.getPackagePaths = (pkg) => {
|
|
|
176
180
|
const rootDirectory = process.cwd();
|
|
177
181
|
const resolvePath = (relativePath) => path.resolve(rootDirectory, relativePath);
|
|
178
182
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
183
|
+
let packagesBasePath, folder;
|
|
184
|
+
packagesBasePath = 'packages';
|
|
185
|
+
folder = pkg.folder || pkg.name;
|
|
182
186
|
|
|
183
187
|
let packagesPath;
|
|
184
188
|
if (pkg.child) {
|
|
@@ -228,6 +232,37 @@ module.exports.getPackagePaths = (pkg) => {
|
|
|
228
232
|
return paths;
|
|
229
233
|
};
|
|
230
234
|
|
|
235
|
+
module.exports.getStandalonePackage = () => {
|
|
236
|
+
const basePath = path.join(process.cwd());
|
|
237
|
+
|
|
238
|
+
const packageJsonPath = path.join(basePath, 'package.json');
|
|
239
|
+
|
|
240
|
+
if (!tools.isFileExists(packageJsonPath)) {
|
|
241
|
+
throw new Error('PACKAGE_JSON_NOT_FOUND');
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// get package.json information (name, current version)
|
|
245
|
+
const packageJson = require(packageJsonPath);
|
|
246
|
+
|
|
247
|
+
const pkg = {
|
|
248
|
+
csdr: false,
|
|
249
|
+
standalone: true,
|
|
250
|
+
...packageJson,
|
|
251
|
+
paths: {
|
|
252
|
+
root: basePath,
|
|
253
|
+
dist: path.join(basePath, 'dist'),
|
|
254
|
+
publish: path.join(basePath, 'dist'),
|
|
255
|
+
src: path.join(basePath, 'src'),
|
|
256
|
+
lib: path.join(basePath, 'src', 'lib'),
|
|
257
|
+
srcLib: path.join(basePath, 'src', 'lib'),
|
|
258
|
+
tsConfig: path.join(basePath, 'tsconfig.lib.json'),
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
pkg.tsConfigFileName = `${path.parse(pkg.paths.tsConfig).name}.json`;
|
|
262
|
+
|
|
263
|
+
return pkg;
|
|
264
|
+
}
|
|
265
|
+
|
|
231
266
|
module.exports.getBuildablePackages = () => {
|
|
232
267
|
return this.getPackages().filter((pkg) => {
|
|
233
268
|
if (!pkg.build) {
|
|
@@ -338,6 +373,10 @@ const getPackageEuiVersion = (module.exports.getPackageEuiVersion = (pkg, log =
|
|
|
338
373
|
version = getEuiVersionCore(pkg);
|
|
339
374
|
}
|
|
340
375
|
|
|
376
|
+
if (!version && pkg.standalone) {
|
|
377
|
+
version = getEuiVersionFromPackageJson(pkg);
|
|
378
|
+
}
|
|
379
|
+
|
|
341
380
|
if (log) {
|
|
342
381
|
if (version) {
|
|
343
382
|
tools.logInfo(`checking -->${pkg.name}<-- => version found : ${version}\n`);
|
|
@@ -70,12 +70,18 @@ const processResolutionsInjection = module.exports.processResolutionsInjection =
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
module.exports.initRootFilesAndResolutions = () => {
|
|
73
|
+
module.exports.initRootFilesAndResolutions = (euiVersionInput) => {
|
|
74
74
|
tools.logTitle('Processing injections for local installed eUI versions if needed');
|
|
75
75
|
|
|
76
76
|
return Promise.resolve()
|
|
77
77
|
.then(() => {
|
|
78
|
-
|
|
78
|
+
let euiVersion;
|
|
79
|
+
|
|
80
|
+
if (euiVersionInput) {
|
|
81
|
+
euiVersion = euiVersionInput;
|
|
82
|
+
} else {
|
|
83
|
+
euiVersion = configUtils.global.getLocalEuiVersion();
|
|
84
|
+
}
|
|
79
85
|
|
|
80
86
|
processResolutionsInjection(process.cwd(), euiVersion);
|
|
81
87
|
|
|
@@ -154,3 +154,11 @@ module.exports.importScripts = () => {
|
|
|
154
154
|
throw e;
|
|
155
155
|
})
|
|
156
156
|
}
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
module.exports.injectStandaloneResources = (pkg) => {
|
|
160
|
+
const euiVersion = configUtils.packages.getPackageEuiVersion(pkg);
|
|
161
|
+
const skeletonPath = path.join(__dirname, 'standalone', euiVersion);
|
|
162
|
+
|
|
163
|
+
tools.copy(skeletonPath, pkg.paths.root);
|
|
164
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"projects/**/*"
|
|
5
|
+
],
|
|
6
|
+
"overrides": [
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"*.ts"
|
|
10
|
+
],
|
|
11
|
+
"plugins": [
|
|
12
|
+
"prefer-arrow"
|
|
13
|
+
],
|
|
14
|
+
"extends": [
|
|
15
|
+
"eslint:recommended",
|
|
16
|
+
"plugin:@typescript-eslint/recommended",
|
|
17
|
+
"plugin:@angular-eslint/recommended",
|
|
18
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
19
|
+
],
|
|
20
|
+
"rules": {
|
|
21
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
22
|
+
"@typescript-eslint/ban-types": [
|
|
23
|
+
"error",
|
|
24
|
+
{
|
|
25
|
+
"types": {
|
|
26
|
+
"Function": false
|
|
27
|
+
},
|
|
28
|
+
"extendDefaults": true
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
32
|
+
"@typescript-eslint/dot-notation": "off",
|
|
33
|
+
"@typescript-eslint/explicit-member-accessibility": [
|
|
34
|
+
"off",
|
|
35
|
+
{
|
|
36
|
+
"accessibility": "explicit"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
40
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
41
|
+
"@typescript-eslint/no-var-requires": "error",
|
|
42
|
+
"@typescript-eslint/require-await": "error",
|
|
43
|
+
"brace-style": [
|
|
44
|
+
"error",
|
|
45
|
+
"1tbs"
|
|
46
|
+
],
|
|
47
|
+
"comma-dangle": [
|
|
48
|
+
"error",
|
|
49
|
+
"always-multiline"
|
|
50
|
+
],
|
|
51
|
+
"id-blacklist": "off",
|
|
52
|
+
"id-match": "off",
|
|
53
|
+
"no-duplicate-case": "error",
|
|
54
|
+
"no-duplicate-imports": "off",
|
|
55
|
+
"no-invalid-this": "error",
|
|
56
|
+
"no-multiple-empty-lines": [
|
|
57
|
+
"error",
|
|
58
|
+
{
|
|
59
|
+
"max": 1
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"no-new-func": "error",
|
|
63
|
+
"no-redeclare": "off",
|
|
64
|
+
"@typescript-eslint/no-redeclare": [
|
|
65
|
+
"error"
|
|
66
|
+
],
|
|
67
|
+
"no-template-curly-in-string": "error",
|
|
68
|
+
"no-underscore-dangle": "off",
|
|
69
|
+
"@typescript-eslint/naming-convention": [
|
|
70
|
+
"error",
|
|
71
|
+
{
|
|
72
|
+
"selector": "enum",
|
|
73
|
+
"format": [
|
|
74
|
+
"PascalCase",
|
|
75
|
+
"UPPER_CASE"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"@typescript-eslint/member-ordering": [
|
|
80
|
+
"error",
|
|
81
|
+
{
|
|
82
|
+
"default": [
|
|
83
|
+
"public-static-field",
|
|
84
|
+
"public-instance-field",
|
|
85
|
+
"private-static-field",
|
|
86
|
+
"private-instance-field",
|
|
87
|
+
"public-constructor",
|
|
88
|
+
"private-constructor",
|
|
89
|
+
"public-instance-method",
|
|
90
|
+
"protected-instance-method",
|
|
91
|
+
"private-instance-method"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"quote-props": ["error", "as-needed"],
|
|
96
|
+
"prefer-const": "error",
|
|
97
|
+
"@typescript-eslint/no-empty-function": ["error"],
|
|
98
|
+
"prefer-arrow/prefer-arrow-functions": [
|
|
99
|
+
"error",
|
|
100
|
+
{
|
|
101
|
+
"disallowPrototype": false,
|
|
102
|
+
"singleReturnOnly": false,
|
|
103
|
+
"classPropertiesAllowed": false,
|
|
104
|
+
"allowStandaloneDeclarations": true
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"@typescript-eslint/no-inferrable-types": ["error"],
|
|
108
|
+
"@typescript-eslint/explicit-function-return-type": "error",
|
|
109
|
+
"@angular-eslint/no-output-on-prefix": ["error"],
|
|
110
|
+
"@angular-eslint/no-output-native": ["error"],
|
|
111
|
+
"@angular-eslint/no-outputs-metadata-property": ["error"],
|
|
112
|
+
"@typescript-eslint/prefer-for-of": ["error"],
|
|
113
|
+
"@angular-eslint/no-empty-lifecycle-method": ["error"],
|
|
114
|
+
"@typescript-eslint/no-explicit-any": ["error"],
|
|
115
|
+
"@typescript-eslint/no-unsafe-declaration-merging": ["error"],
|
|
116
|
+
"no-empty": "error",
|
|
117
|
+
"object-curly-spacing": ["error", "always"],
|
|
118
|
+
"quotes": ["error", "single"],
|
|
119
|
+
"@angular-eslint/use-lifecycle-interface": ["error"]
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"files": [
|
|
124
|
+
"*.html"
|
|
125
|
+
],
|
|
126
|
+
"extends": [
|
|
127
|
+
"plugin:@angular-eslint/template/recommended"
|
|
128
|
+
],
|
|
129
|
+
"rules": {
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ".eslintrc.eui18.standalone.json",
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"!**/*",
|
|
5
|
+
"**/*.d.ts",
|
|
6
|
+
"dist",
|
|
7
|
+
"test",
|
|
8
|
+
"coverage",
|
|
9
|
+
"externals",
|
|
10
|
+
"legacy",
|
|
11
|
+
"node_modules"
|
|
12
|
+
],
|
|
13
|
+
"overrides": [
|
|
14
|
+
{
|
|
15
|
+
"files": [
|
|
16
|
+
"*.ts"
|
|
17
|
+
],
|
|
18
|
+
"parserOptions": {
|
|
19
|
+
"project": [
|
|
20
|
+
"tsconfig.lib.standalone.json",
|
|
21
|
+
"tsconfig.spec.standalone.json"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
"rules": {
|
|
25
|
+
"@angular-eslint/component-selector": [
|
|
26
|
+
"error",
|
|
27
|
+
{
|
|
28
|
+
"type": "element",
|
|
29
|
+
"prefix": ["zzz"],
|
|
30
|
+
"style": "kebab-case"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"@angular-eslint/directive-selector": [
|
|
34
|
+
"error",
|
|
35
|
+
{
|
|
36
|
+
"type": "attribute",
|
|
37
|
+
"prefix": ["zzz"],
|
|
38
|
+
"style": "camelCase"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.standalone.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "./out-tsc/lib",
|
|
5
|
+
"target": "ES2022",
|
|
6
|
+
"module": "ES2022",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"inlineSources": true,
|
|
11
|
+
"emitDecoratorMetadata": true,
|
|
12
|
+
"experimentalDecorators": true,
|
|
13
|
+
"useDefineForClassFields": false,
|
|
14
|
+
"importHelpers": true,
|
|
15
|
+
"types": [],
|
|
16
|
+
"lib": [
|
|
17
|
+
"ES2022",
|
|
18
|
+
"dom"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"angularCompilerOptions": {
|
|
22
|
+
"annotateForClosureCompiler": true,
|
|
23
|
+
"skipTemplateCodegen": true,
|
|
24
|
+
"strictMetadataEmit": true,
|
|
25
|
+
"fullTemplateTypeCheck": true,
|
|
26
|
+
"strictInjectionParameters": true,
|
|
27
|
+
"enableResourceInlining": true,
|
|
28
|
+
"compilationMode": "partial"
|
|
29
|
+
},
|
|
30
|
+
"exclude": [
|
|
31
|
+
"src/test.ts",
|
|
32
|
+
"**/*.spec.ts"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compileOnSave": false,
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": ".",
|
|
5
|
+
"sourceMap": true,
|
|
6
|
+
"declaration": false,
|
|
7
|
+
"module": "ES2022",
|
|
8
|
+
"moduleResolution": "node",
|
|
9
|
+
"allowSyntheticDefaultImports": true,
|
|
10
|
+
"emitDecoratorMetadata": true,
|
|
11
|
+
"experimentalDecorators": true,
|
|
12
|
+
"target": "ES2022",
|
|
13
|
+
"typeRoots": [
|
|
14
|
+
"node_modules/@types"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|