@eui/tools 6.21.12 → 6.21.13
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
|
-
6.21.
|
|
1
|
+
6.21.13
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.21.13 (2024-12-12)
|
|
2
|
+
|
|
3
|
+
##### Chores
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* adapt eslint to use mjs file format - EUI-10289 [EUI-10289](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-10289) ([0d7f5659](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/0d7f5659a898c126a9d6b7d39ad0d87538800cfe))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.21.12 (2024-12-11)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/package.json
CHANGED
|
@@ -68,6 +68,8 @@ const getProjectPaths = (prj) => {
|
|
|
68
68
|
paths.tslintPath = path.join(rootPath, '.tslint.json');
|
|
69
69
|
} else if (tools.isFileExists(path.join(rootPath, 'src', '.eslintrc.json'))) {
|
|
70
70
|
paths.eslintPath = path.join(rootPath, 'src', '.eslintrc.json');
|
|
71
|
+
} else if (tools.isFileExists(path.join(rootPath, 'src', 'eslint.config.mjs'))) {
|
|
72
|
+
paths.eslintPath = path.join(rootPath, 'src', 'eslint.config.mjs');
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
return { paths: paths };
|
|
@@ -61,6 +61,7 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
61
61
|
|
|
62
62
|
const tsLintPath = path.join(pkg.paths.root, 'tslint.json');
|
|
63
63
|
const esLintPath = path.join(pkg.paths.root, '.eslintrc.json');
|
|
64
|
+
const esLintPathMjs = path.join(pkg.paths.root, 'eslint.config.mjs');
|
|
64
65
|
|
|
65
66
|
if (tools.isFileExists(tsLintPath)) {
|
|
66
67
|
// TODO: remove TSLint since it's deprecated and should not be used by projects in the future
|
|
@@ -69,7 +70,7 @@ module.exports.build = (pkg, isMaster) => {
|
|
|
69
70
|
tools.logInfo(`running ${script}`);
|
|
70
71
|
return tools.runScript(script);
|
|
71
72
|
|
|
72
|
-
} else if(tools.isFileExists(esLintPath)) {
|
|
73
|
+
} else if(tools.isFileExists(esLintPath) || tools.isFileExists(esLintPathMjs)) {
|
|
73
74
|
// the project path information are located inside the .eslintrc.json
|
|
74
75
|
tools.logInfo(`running ng lint ${pkg.name}`);
|
|
75
76
|
|