@nx/eslint 19.1.0-canary.20240524-12c6a73 → 19.1.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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/eslint",
|
3
|
-
"version": "19.1.
|
3
|
+
"version": "19.1.1",
|
4
4
|
"private": false,
|
5
5
|
"description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
|
6
6
|
"repository": {
|
@@ -31,19 +31,19 @@
|
|
31
31
|
"generators": "./generators.json",
|
32
32
|
"executors": "./executors.json",
|
33
33
|
"peerDependencies": {
|
34
|
-
"js-yaml": "
|
34
|
+
"@zkochan/js-yaml": "0.0.7",
|
35
|
+
"eslint": "^8.0.0 || ^9.0.0"
|
35
36
|
},
|
36
37
|
"dependencies": {
|
37
|
-
"@nx/devkit": "19.1.
|
38
|
-
"@nx/js": "19.1.
|
39
|
-
"eslint": "^8.0.0",
|
38
|
+
"@nx/devkit": "19.1.1",
|
39
|
+
"@nx/js": "19.1.1",
|
40
40
|
"semver": "^7.5.3",
|
41
41
|
"tslib": "^2.3.0",
|
42
42
|
"typescript": "~5.4.2",
|
43
|
-
"@nx/linter": "19.1.
|
43
|
+
"@nx/linter": "19.1.1"
|
44
44
|
},
|
45
45
|
"peerDependenciesMeta": {
|
46
|
-
"js-yaml": {
|
46
|
+
"@zkochan/js-yaml": {
|
47
47
|
"optional": true
|
48
48
|
}
|
49
49
|
},
|
@@ -6,7 +6,6 @@ const eslint_file_1 = require("../utils/eslint-file");
|
|
6
6
|
const path_1 = require("path");
|
7
7
|
const versions_1 = require("../../utils/versions");
|
8
8
|
const json_converter_1 = require("./converters/json-converter");
|
9
|
-
const js_yaml_1 = require("js-yaml");
|
10
9
|
async function convertToFlatConfigGenerator(tree, options) {
|
11
10
|
const eslintFile = (0, eslint_file_1.findEslintFile)(tree);
|
12
11
|
if (!eslintFile) {
|
@@ -112,7 +111,8 @@ function convertConfigToFlatConfig(tree, root, source, target, ignorePath) {
|
|
112
111
|
}
|
113
112
|
if (source.endsWith('.yaml') || source.endsWith('.yml')) {
|
114
113
|
const originalContent = tree.read(`${root}/${source}`, 'utf-8');
|
115
|
-
const
|
114
|
+
const { load } = require('@zkochan/js-yaml');
|
115
|
+
const config = load(originalContent, {
|
116
116
|
json: true,
|
117
117
|
filename: source,
|
118
118
|
});
|