@angular-eslint/builder 20.4.1-alpha.1 → 20.4.1-alpha.10

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.
@@ -12,7 +12,7 @@ exports.supportedFlatConfigNames = [
12
12
  ];
13
13
  async function resolveESLintClass(useFlatConfig = false) {
14
14
  try {
15
- // In eslint 8.57.0 (the final v8 version), a dedicated API was added for resolving the correct ESLint class.
15
+ // In eslint 8.57.0 (the final v8 minor version), a dedicated API was added for resolving the correct ESLint class.
16
16
  const eslint = await import('eslint');
17
17
  if (typeof eslint.loadESLint === 'function') {
18
18
  return await eslint.loadESLint({ useFlatConfig });
@@ -21,7 +21,7 @@ async function resolveESLintClass(useFlatConfig = false) {
21
21
  if (!useFlatConfig) {
22
22
  return eslint.ESLint;
23
23
  }
24
- const { FlatESLint } = require('eslint/use-at-your-own-risk');
24
+ const { FlatESLint } = await import('eslint/use-at-your-own-risk');
25
25
  return FlatESLint;
26
26
  }
27
27
  catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/builder",
3
- "version": "20.4.1-alpha.1",
3
+ "version": "20.4.1-alpha.10",
4
4
  "description": "Angular CLI builder for ESLint",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",