From a8ec1f098e300ddb5457fb42387ea19ad3f2efae Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 4 May 2021 09:54:38 +0200 Subject: [PATCH] test: update header/header ESlint rule configuration to be fixable. With this change we configure the header/header rule to be fixable. --- .eslintrc.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 6f6c439697..c268a567aa 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -24,7 +24,20 @@ "@typescript-eslint/no-unnecessary-qualifier": "error", "@typescript-eslint/no-unused-expressions": "error", "curly": "error", - "header/header": ["error", "block", [{ "pattern": "Copyright Google LLC" }]], + "header/header": [ + "error", + "block", + [ + "*", + " * @license", + " * Copyright Google LLC All Rights Reserved.", + " *", + " * Use of this source code is governed by an MIT-style license that can be", + " * found in the LICENSE file at https://angular.io/license", + " " + ], + 2 + ], "import/first": "error", "import/newline-after-import": "error", "import/no-absolute-path": "error",