11/*
22 * Copyright The OpenTelemetry Authors
3- *
4- * Licensed under the Apache License, Version 2.0 (the "License");
5- * you may not use this file except in compliance with the License.
6- * You may obtain a copy of the License at
7- *
8- * https://www.apache.org/licenses/LICENSE-2.0
9- *
10- * Unless required by applicable law or agreed to in writing, software
11- * distributed under the License is distributed on an "AS IS" BASIS,
12- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- * See the License for the specific language governing permissions and
14- * limitations under the License.
3+ * SPDX-License-Identifier: Apache-2.0
154 */
165
176import eslint from '@eslint/js' ;
@@ -24,18 +13,7 @@ import baselinePlugin from 'eslint-plugin-baseline-js';
2413const defaultLicense = `
2514/*
2615 * Copyright The OpenTelemetry Authors
27- *
28- * Licensed under the Apache License, Version 2.0 (the "License");
29- * you may not use this file except in compliance with the License.
30- * You may obtain a copy of the License at
31- *
32- * https://www.apache.org/licenses/LICENSE-2.0
33- *
34- * Unless required by applicable law or agreed to in writing, software
35- * distributed under the License is distributed on an "AS IS" BASIS,
36- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
37- * See the License for the specific language governing permissions and
38- * limitations under the License.
16+ * SPDX-License-Identifier: Apache-2.0
3917 */
4018` ;
4119
@@ -47,7 +25,7 @@ const defaultLicense = `
4725// Copyright <someone>
4826// Copyright <another someone>
4927const licensePattern =
50- / ^ \/ \* \n \* C o p y r i g h t T h e O p e n T e l e m e t r y A u t h o r s (?: , [ ^ \n ] + ) * \n (?: \* C o p y r i g h t [ ^ \n ] + \n ) * \* \n \* L i c e n s e d u n d e r t h e A p a c h e L i c e n s e , V e r s i o n 2 . 0 \( t h e " L i c e n s e " \) ; \n \* y o u m a y n o t u s e t h i s f i l e e x c e p t i n c o m p l i a n c e w i t h t h e L i c e n s e . \n \* Y o u m a y o b t a i n a c o p y o f t h e L i c e n s e a t \n \* \n \* { 6 } h t t p s : \/ \/ w w w . a p a c h e . o r g \/ l i c e n s e s \/ L I C E N S E - 2 .0 \n \* \n \* U n l e s s r e q u i r e d b y a p p l i c a b l e l a w o r a g r e e d t o i n w r i t i n g , s o f t w a r e \n \* d i s t r i b u t e d u n d e r t h e L i c e n s e i s d i s t r i b u t e d o n a n " A S I S " B A S I S , \n \* W I T H O U T W A R R A N T I E S O R C O N D I T I O N S O F A N Y K I N D , e i t h e r e x p r e s s o r i m p l i e d . \n \* S e e t h e L i c e n s e f o r t h e s p e c i f i c l a n g u a g e g o v e r n i n g p e r m i s s i o n s a n d \n \* l i m i t a t i o n s u n d e r t h e L i c e n s e . \n \* \/ $ / ;
28+ / ^ \/ \* \n \* C o p y r i g h t T h e O p e n T e l e m e t r y A u t h o r s (?: , [ ^ \n ] + ) * \n (?: \* C o p y r i g h t [ ^ \n ] + \n ) * \* S P D X - L i c e n s e - I d e n t i f i e r : A p a c h e - 2 .0 \n \* \/ $ / ;
5129
5230const baseConfig = tseslint . config (
5331 {
0 commit comments