Skip to content

Commit

Permalink
chore: fix eslint config (open-telemetry#79)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Marchaud <[email protected]>
  • Loading branch information
rauno56 and vmarchaud authored May 25, 2021
1 parent f67d61a commit 8557363
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 34 deletions.
8 changes: 7 additions & 1 deletion api/.eslintrc.js
Original file line number Diff line number Diff line change
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 api/backwards-compatability/node10/index.ts
Original file line number Diff line number Diff line change
@@ -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 api/backwards-compatability/node10/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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 api/backwards-compatability/node12/index.ts
Original file line number Diff line number Diff line change
@@ -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 api/backwards-compatability/node12/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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 api/backwards-compatability/node8/index.ts
Original file line number Diff line number Diff line change
@@ -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 api/backwards-compatability/node8/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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 8557363

Please sign in to comment.