@angular-eslint/builder 18.0.0-alpha.3 → 18.0.0-alpha.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"eslint-utils.d.ts","sourceRoot":"","sources":["../../src/utils/eslint-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAuBxC,wBAAsB,2BAA2B,CAC/C,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,OAAO,EAAE,MAAM,EACf,aAAa,UAAQ;;;GAoEtB"}
1
+ {"version":3,"file":"eslint-utils.d.ts","sourceRoot":"","sources":["../../src/utils/eslint-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAuBxC,wBAAsB,2BAA2B,CAC/C,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,OAAO,EAAE,MAAM,EACf,aAAa,UAAQ;;;GAyEtB"}
@@ -44,7 +44,6 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
44
44
  * not be any html files in the project, so keeping it true would break linting every time
45
45
  */
46
46
  errorOnUnmatchedPattern: false,
47
- reportUnusedDisableDirectives: options.reportUnusedDisableDirectives || undefined,
48
47
  };
49
48
  if (useFlatConfig) {
50
49
  if (typeof options.useEslintrc !== 'undefined') {
@@ -56,6 +55,9 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
56
55
  if (options.ignorePath !== undefined) {
57
56
  throw new Error('For Flat Config, ESLint removed `ignorePath` and so it is not supported as an option. See https://eslint.org/docs/latest/use/configure/configuration-files-new');
58
57
  }
58
+ if (options.reportUnusedDisableDirectives) {
59
+ throw new Error('For Flat Config, ESLint removed `reportedUnusedDisableDirectives` and so it is not supported as an option. See https://eslint.org/docs/latest/use/configure/configuration-files-new');
60
+ }
59
61
  }
60
62
  else {
61
63
  eslintOptions.rulePaths = options.rulesdir || [];
@@ -67,6 +69,8 @@ async function resolveAndInstantiateESLint(eslintConfigPath, options, useFlatCon
67
69
  * merge the provided config with others it finds automatically.
68
70
  */
69
71
  eslintOptions.useEslintrc = !options.noEslintrc;
72
+ eslintOptions.reportUnusedDisableDirectives =
73
+ options.reportUnusedDisableDirectives || undefined;
70
74
  }
71
75
  const eslint = new ESLint(eslintOptions);
72
76
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/builder",
3
- "version": "18.0.0-alpha.3",
3
+ "version": "18.0.0-alpha.5",
4
4
  "description": "Angular CLI builder for ESLint",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",