Skip to content

Commit

Permalink
chore: fix strict rule in getting-started lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
alisabzevari committed Jul 4, 2021
1 parent 2875e82 commit 878bee2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 5 deletions.
9 changes: 4 additions & 5 deletions getting-started/.eslintrc
Expand Up @@ -4,14 +4,13 @@
},
"extends": "airbnb-base",
"parserOptions": {
"sourceType": "module"
"sourceType": "script"
},
"rules": {
"strict": ["error", "global"],
"no-use-before-define": ["error", "nofunc"],
"no-console": "off",
"import/no-unresolved": "off",
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }]
},
"ignorePatterns": "**/*_pb.js"
"no-unused-vars": ["error"],
"strict": ["error", "global"]
}
}
2 changes: 2 additions & 0 deletions getting-started/example/app.js
@@ -1,3 +1,5 @@
'use strict';

const PORT = process.env.PORT || '8080';

const express = require('express');
Expand Down
2 changes: 2 additions & 0 deletions getting-started/monitored-example/app.js
@@ -1,3 +1,5 @@
'use strict';

const PORT = process.env.PORT || '8080';

const express = require('express');
Expand Down
2 changes: 2 additions & 0 deletions getting-started/monitored-example/monitoring.js
@@ -1,3 +1,5 @@
'use strict';

const { MeterProvider } = require('@opentelemetry/metrics');
const { PrometheusExporter } = require('@opentelemetry/exporter-prometheus');

Expand Down
2 changes: 2 additions & 0 deletions getting-started/traced-example/app.js
@@ -1,3 +1,5 @@
'use strict';

const PORT = process.env.PORT || '8080';

const express = require('express');
Expand Down
2 changes: 2 additions & 0 deletions getting-started/traced-example/tracing.js
@@ -1,3 +1,5 @@
'use strict';

const { NodeTracerProvider } = require('@opentelemetry/node');
const { SimpleSpanProcessor } = require('@opentelemetry/tracing');
const { Resource } = require('@opentelemetry/resources');
Expand Down

0 comments on commit 878bee2

Please sign in to comment.