Skip to content

Commit 02d648f

Browse files
committed
ci: revisit eslint
1 parent 8082b84 commit 02d648f

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@
1818
"prepare": "husky install"
1919
},
2020
"lint-staged": {
21-
"**/*.{ts,tsx}": [
21+
"packages/{instrumentation-*,node-*,browser,cli}/**/*.{ts,tsx}": [
2222
"prettier --write --ignore-unknown",
2323
"eslint --fix"
2424
],
25+
"packages/{otel-web,session-recorder,deno}/**/*.{ts,tsx}": [
26+
"prettier --write --ignore-unknown"
27+
],
2528
"**/*.{json,yml}": [
2629
"prettier --write --ignore-unknown"
2730
]

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"postbuild": "mv build/src/index.d.ts build/index.d.ts",
3535
"build:watch": "rollup --config rollup.config.ts --configPlugin typescript -w",
3636
"lint": "eslint . --ext .ts --ext .mts",
37-
"ci:lint": "yarn lint && yarn tsc --noEmit",
37+
"ci:lint": "yarn lint && tsc --noEmit",
3838
"ci:unit": "jest --coverage --ci",
3939
"prettier": "prettier --config .prettierrc --write .",
4040
"test:watch": "jest --watch"

packages/instrumentation-exception/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build:types": "tsc -d -p tsconfig.release.json --declarationMap --emitDeclarationOnly",
2424
"build:watch": "tsc -w -p tsconfig.json",
2525
"lint": "eslint . --ext .ts --ext .mts",
26-
"ci:lint": "yarn lint && yarn tsc --noEmit",
26+
"ci:lint": "yarn lint && tsc --noEmit",
2727
"prettier": "prettier --config .prettierrc --write .",
2828
"test": "jest",
2929
"test:watch": "jest --watch"

packages/instrumentation-sentry-node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build:types": "tsc -d -p tsconfig.release.json --declarationMap --emitDeclarationOnly",
2424
"build:watch": "tsc -w -p tsconfig.json",
2525
"lint": "eslint . --ext .ts --ext .mts",
26-
"ci:lint": "yarn lint && yarn tsc --noEmit",
26+
"ci:lint": "yarn lint && tsc --noEmit",
2727
"prettier": "prettier --config .prettierrc --write ."
2828
},
2929
"dependencies": {

packages/node-logger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build:types": "tsc -d -p tsconfig.release.json --declarationMap --emitDeclarationOnly",
2626
"build:watch": "tsc -w -p tsconfig.json",
2727
"lint": "eslint . --ext .ts --ext .mts",
28-
"ci:lint": "yarn lint && yarn tsc --noEmit",
28+
"ci:lint": "yarn lint && tsc --noEmit",
2929
"dev:unit": "jest --watch",
3030
"prettier": "prettier --config .prettierrc --write ."
3131
},

packages/node-opentelemetry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"build:types": "tsc -d -p tsconfig.release.json --declarationMap --emitDeclarationOnly",
2727
"build:watch": "tsc -w -p tsconfig.json",
2828
"lint": "eslint . --ext .ts --ext .mts",
29-
"ci:lint": "yarn lint && yarn tsc --noEmit",
29+
"ci:lint": "yarn lint && tsc --noEmit",
3030
"dev:unit": "jest --watchAll",
3131
"ci:unit": "jest --coverage --ci",
3232
"prettier": "prettier --config .prettierrc --write ."

packages/otel-web/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ export const Rum: RumOtelWebType = {
572572
disable,
573573
);
574574
if (pluginConf) {
575-
// @ts-expect-error Can't mark in any way that processedOptions.instrumentations[confKey] is of specifc config type
575+
// @ts-ignore Can't mark in any way that processedOptions.instrumentations[confKey] is of specifc config type
576576
const instrumentation = new Instrument(pluginConf);
577577
if (
578578
confKey === ERROR_INSTRUMENTATION_NAME &&

0 commit comments

Comments
 (0)