Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit 7f32567

Browse files
rauno56vmarchaud
andauthored
chore: fix eslint config (#79)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
1 parent f667325 commit 7f32567

File tree

7 files changed

+61
-34
lines changed

7 files changed

+61
-34
lines changed

.eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ module.exports = {
1313
],
1414
parser: "@typescript-eslint/parser",
1515
parserOptions: {
16-
"project": "./tsconfig.json"
16+
"project": [
17+
"./tsconfig.json",
18+
"backwards-compatability/*/tsconfig.json"
19+
]
1720
},
21+
ignorePatterns: [
22+
'build',
23+
],
1824
rules: {
1925
"@typescript-eslint/no-this-alias": "off",
2026
"eqeqeq": [

backwards-compatability/node10/index.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
import {NodeSDK, api} from '@opentelemetry/sdk-node';
2-
import {ConsoleSpanExporter} from '@opentelemetry/tracing';
1+
/*
2+
* 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.
15+
*/
16+
import { NodeSDK, api } from '@opentelemetry/sdk-node';
17+
import { ConsoleSpanExporter } from '@opentelemetry/tracing';
318

419
const sdk = new NodeSDK({
520
traceExporter: new ConsoleSpanExporter(),
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
2-
"extends": "../../tsconfig.es5.json",
2+
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"rootDir": ".",
55
"outDir": "build"
66
},
77
"include": [
88
"index.ts"
9-
],
10-
"references": [
11-
{
12-
"path": "../../packages/opentelemetry-sdk-node"
13-
},
14-
{
15-
"path": "../../packages/opentelemetry-tracing"
16-
}
179
]
1810
}

backwards-compatability/node12/index.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
import {NodeSDK, api} from '@opentelemetry/sdk-node';
2-
import {ConsoleSpanExporter} from '@opentelemetry/tracing';
1+
/*
2+
* 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.
15+
*/
16+
import { NodeSDK, api } from '@opentelemetry/sdk-node';
17+
import { ConsoleSpanExporter } from '@opentelemetry/tracing';
318

419
const sdk = new NodeSDK({
520
traceExporter: new ConsoleSpanExporter(),
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
2-
"extends": "../../tsconfig.es5.json",
2+
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"rootDir": ".",
55
"outDir": "build"
66
},
77
"include": [
88
"index.ts"
9-
],
10-
"references": [
11-
{
12-
"path": "../../packages/opentelemetry-sdk-node"
13-
},
14-
{
15-
"path": "../../packages/opentelemetry-tracing"
16-
}
179
]
1810
}

backwards-compatability/node8/index.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
1-
import {NodeSDK, api} from '@opentelemetry/sdk-node';
2-
import {ConsoleSpanExporter} from '@opentelemetry/tracing';
1+
/*
2+
* 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.
15+
*/
16+
import { NodeSDK, api } from '@opentelemetry/sdk-node';
17+
import { ConsoleSpanExporter } from '@opentelemetry/tracing';
318

419
const sdk = new NodeSDK({
520
traceExporter: new ConsoleSpanExporter(),
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
2-
"extends": "../../tsconfig.es5.json",
2+
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"rootDir": ".",
55
"outDir": "build"
66
},
77
"include": [
88
"index.ts"
9-
],
10-
"references": [
11-
{
12-
"path": "../../packages/opentelemetry-sdk-node"
13-
},
14-
{
15-
"path": "../../packages/opentelemetry-tracing"
16-
}
179
]
1810
}

0 commit comments

Comments
 (0)