diff --git a/docs/generated/packages/linter.json b/docs/generated/packages/linter.json index 9e28408f80b43..60dc068f86296 100644 --- a/docs/generated/packages/linter.json +++ b/docs/generated/packages/linter.json @@ -206,7 +206,6 @@ }, "reportUnusedDisableDirectives": { "type": "string", - "default": "off", "enum": ["off", "warn", "error"], "description": "The equivalent of the `--report-unused-disable-directives` flag on the ESLint CLI." } diff --git a/packages/linter/src/executors/eslint/schema.json b/packages/linter/src/executors/eslint/schema.json index 992167f3f8cda..159f952417c32 100644 --- a/packages/linter/src/executors/eslint/schema.json +++ b/packages/linter/src/executors/eslint/schema.json @@ -126,7 +126,6 @@ }, "reportUnusedDisableDirectives": { "type": "string", - "default": "off", "enum": ["off", "warn", "error"], "description": "The equivalent of the `--report-unused-disable-directives` flag on the ESLint CLI." } diff --git a/packages/linter/src/executors/eslint/utility/eslint-utils.spec.ts b/packages/linter/src/executors/eslint/utility/eslint-utils.spec.ts index 5edf933df903f..d208782c20af0 100644 --- a/packages/linter/src/executors/eslint/utility/eslint-utils.spec.ts +++ b/packages/linter/src/executors/eslint/utility/eslint-utils.spec.ts @@ -156,5 +156,15 @@ describe('eslint-utils', () => { useEslintrc: true, }); }); + + it('should create a ESLint instance with no "reportUnusedDisableDirectives" if it is undefined', async () => { + await lint(undefined, {}); + + expect(ESLint).toHaveBeenCalledWith( + expect.objectContaining({ + reportUnusedDisableDirectives: undefined, + }) + ); + }); }); });