Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
style: use single quotes everywhere and add a rule to eslint
  • Loading branch information
CptSchnitz committed Jul 20, 2021
commit fda991350eacffcfa8ecc2397680c29a14db15fb
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
"project": "./tsconfig.json"
},
rules: {
"quotes": [2, "single", { "avoidEscape": true }],
"@typescript-eslint/no-this-alias": "off",
"eqeqeq": "off",
"prefer-rest-params": "off",
Expand Down
2 changes: 1 addition & 1 deletion metapackages/auto-instrumentations-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ registerInstrumentations({
instrumentations: [
getWebAutoInstrumentations({
// load custom configuration for xml-http-request instrumentation
"@opentelemetry/instrumentation-xml-http-request": {
'@opentelemetry/instrumentation-xml-http-request': {
clearTimingResources: true,
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ npm install --save @opentelemetry/instrumentation-ioredis
To load a specific instrumentation (**ioredis** in this case), specify it in the registerInstrumentations's configuration

```javascript
const { NodeTracerProvider } = require("@opentelemetry/node");
const { NodeTracerProvider } = require('@opentelemetry/node');
const {
IORedisInstrumentation,
} = require("@opentelemetry/instrumentation-ioredis");
const { registerInstrumentations } = require("@opentelemetry/instrumentation");
} = require('@opentelemetry/instrumentation-ioredis');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');

const provider = new NodeTracerProvider();
provider.register();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Example of usage:

```javascript
const { NodeTracerProvider } = require('@opentelemetry/node');
const { GrpcCensusPropagator } = require("@opentelemetry/propagator-grpc-census-binary");
const { GrpcCensusPropagator } = require('@opentelemetry/propagator-grpc-census-binary');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');
const { GrpcInstrumentation } = require('opentelemetry/instrumentation-grpc');

Expand Down
2 changes: 1 addition & 1 deletion scripts/version-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ const content = `/*
export const VERSION = '${pjson.version}';
`;

const fileUrl = path.join(appRoot, "src", "version.ts")
const fileUrl = path.join(appRoot, 'src', 'version.ts')

fs.writeFileSync(fileUrl, content);