Skip to content

Commit

Permalink
style: use single quotes everywhere and add a rule to eslint (#583)
Browse files Browse the repository at this point in the history
  • Loading branch information
CptSchnitz committed Jul 26, 2021
1 parent e27bda4 commit 68e5449
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
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
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
6 changes: 3 additions & 3 deletions plugins/node/opentelemetry-instrumentation-ioredis/README.md
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
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
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);

0 comments on commit 68e5449

Please sign in to comment.