Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
chore: fix eslint config (#79)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
  • Loading branch information
rauno56 and vmarchaud committed May 25, 2021
1 parent f667325 commit 7f32567
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 34 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.js
Expand Up @@ -13,8 +13,14 @@ module.exports = {
],
parser: "@typescript-eslint/parser",
parserOptions: {
"project": "./tsconfig.json"
"project": [
"./tsconfig.json",
"backwards-compatability/*/tsconfig.json"
]
},
ignorePatterns: [
'build',
],
rules: {
"@typescript-eslint/no-this-alias": "off",
"eqeqeq": [
Expand Down
19 changes: 17 additions & 2 deletions backwards-compatability/node10/index.ts
@@ -1,5 +1,20 @@
import {NodeSDK, api} from '@opentelemetry/sdk-node';
import {ConsoleSpanExporter} from '@opentelemetry/tracing';
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { NodeSDK, api } from '@opentelemetry/sdk-node';
import { ConsoleSpanExporter } from '@opentelemetry/tracing';

const sdk = new NodeSDK({
traceExporter: new ConsoleSpanExporter(),
Expand Down
10 changes: 1 addition & 9 deletions backwards-compatability/node10/tsconfig.json
@@ -1,18 +1,10 @@
{
"extends": "../../tsconfig.es5.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"index.ts"
],
"references": [
{
"path": "../../packages/opentelemetry-sdk-node"
},
{
"path": "../../packages/opentelemetry-tracing"
}
]
}
19 changes: 17 additions & 2 deletions backwards-compatability/node12/index.ts
@@ -1,5 +1,20 @@
import {NodeSDK, api} from '@opentelemetry/sdk-node';
import {ConsoleSpanExporter} from '@opentelemetry/tracing';
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { NodeSDK, api } from '@opentelemetry/sdk-node';
import { ConsoleSpanExporter } from '@opentelemetry/tracing';

const sdk = new NodeSDK({
traceExporter: new ConsoleSpanExporter(),
Expand Down
10 changes: 1 addition & 9 deletions backwards-compatability/node12/tsconfig.json
@@ -1,18 +1,10 @@
{
"extends": "../../tsconfig.es5.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"index.ts"
],
"references": [
{
"path": "../../packages/opentelemetry-sdk-node"
},
{
"path": "../../packages/opentelemetry-tracing"
}
]
}
19 changes: 17 additions & 2 deletions backwards-compatability/node8/index.ts
@@ -1,5 +1,20 @@
import {NodeSDK, api} from '@opentelemetry/sdk-node';
import {ConsoleSpanExporter} from '@opentelemetry/tracing';
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { NodeSDK, api } from '@opentelemetry/sdk-node';
import { ConsoleSpanExporter } from '@opentelemetry/tracing';

const sdk = new NodeSDK({
traceExporter: new ConsoleSpanExporter(),
Expand Down
10 changes: 1 addition & 9 deletions backwards-compatability/node8/tsconfig.json
@@ -1,18 +1,10 @@
{
"extends": "../../tsconfig.es5.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"index.ts"
],
"references": [
{
"path": "../../packages/opentelemetry-sdk-node"
},
{
"path": "../../packages/opentelemetry-tracing"
}
]
}

0 comments on commit 7f32567

Please sign in to comment.