@nx/eslint 19.0.0-rc.0 → 19.0.0-rc.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.0.0-rc.0",
3
+ "version": "19.0.0-rc.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": {
@@ -33,12 +33,12 @@
33
33
  "js-yaml": "4.1.0"
34
34
  },
35
35
  "dependencies": {
36
- "@nx/devkit": "19.0.0-rc.0",
37
- "@nx/js": "19.0.0-rc.0",
36
+ "@nx/devkit": "19.0.0-rc.1",
37
+ "@nx/js": "19.0.0-rc.1",
38
38
  "eslint": "^8.0.0",
39
39
  "tslib": "^2.3.0",
40
40
  "typescript": "~5.4.2",
41
- "@nx/linter": "19.0.0-rc.0"
41
+ "@nx/linter": "19.0.0-rc.1"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "js-yaml": {
@@ -66,9 +66,11 @@ exports.createNodes = [
66
66
  ];
67
67
  function getProjectsUsingESLintConfig(configFilePath, childProjectRoots, options, context) {
68
68
  const projects = {};
69
- const rootEslintConfig = context.configFiles.find((f) => f === config_file_1.baseEsLintConfigFile ||
70
- f === config_file_1.baseEsLintFlatConfigFile ||
71
- config_file_1.ESLINT_CONFIG_FILENAMES.includes(f));
69
+ const rootEslintConfig = [
70
+ config_file_1.baseEsLintConfigFile,
71
+ config_file_1.baseEsLintFlatConfigFile,
72
+ ...config_file_1.ESLINT_CONFIG_FILENAMES,
73
+ ].find((f) => (0, node_fs_1.existsSync)((0, node_path_1.join)(context.workspaceRoot, f)));
72
74
  // Add a lint target for each child project without an eslint config, with the root level config as an input
73
75
  for (const projectRoot of childProjectRoots) {
74
76
  // If there's no src folder, it's not a standalone project, do not add the target at all
@@ -108,6 +110,7 @@ function buildEslintTargets(eslintConfigs, projectRoot, workspaceRoot, options,
108
110
  '{workspaceRoot}/tools/eslint-rules/**/*',
109
111
  { externalDependencies: ['eslint'] },
110
112
  ],
113
+ outputs: ['{options.outputFile}'],
111
114
  };
112
115
  if (eslintConfigs.some((config) => (0, config_file_1.isFlatConfig)(config))) {
113
116
  targetConfig.options.env = {