Skip to content

Commit b67eeb5

Browse files
committed
fix linting
1 parent 84e2ba1 commit b67eeb5

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

packages/angular/.eslintrc.js renamed to packages/angular/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ module.exports = {
33
browser: true,
44
},
55
extends: ['../../.eslintrc.js'],
6-
ignorePatterns: ['setup-jest.ts'],
6+
ignorePatterns: ['setup-test.ts', 'patch-vitest.ts'],
77
};

packages/angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"engines": {
1010
"node": ">=14.18"
1111
},
12-
"main": "build/esm2020/sentry-angular.mjs",
12+
"type": "module",
1313
"module": "build/fesm2015/sentry-angular.mjs",
1414
"publishConfig": {
1515
"access": "public"
@@ -56,7 +56,7 @@
5656
"fix": "eslint . --format stylish --fix",
5757
"lint": "eslint . --format stylish",
5858
"test": "yarn test:unit",
59-
"test:unit": "vitest",
59+
"test:unit": "vitest run",
6060
"test:unit:watch": "vitest --watch",
6161
"yalc:publish": "yalc publish build --push --sig"
6262
},

packages/angular/src/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function init(options: BrowserOptions): void {
3030
}
3131

3232
function checkAndSetAngularVersion(): void {
33-
const ANGULAR_MINIMUM_VERSION = 15;
33+
const ANGULAR_MINIMUM_VERSION = 14;
3434

3535
const angularVersion = VERSION && VERSION.major ? parseInt(VERSION.major, 10) : undefined;
3636

packages/angular/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
33

4-
"include": ["src/**/*"],
4+
"include": ["**/*.ts", "src/**/*"],
5+
6+
"exclude": ["patch-vitest.ts", "setup-test.ts"],
57

68
"compilerOptions": {
79
// package-specific options

packages/angular/tsconfig.test.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
"compilerOptions": {
77
// should include all types from `./tsconfig.json` plus types for all test frameworks used
8-
"types": ["jest"],
9-
"module": "CommonJs",
8+
"types": ["vitest/globals"],
109

1110
// other package-specific, test-specific options
1211
}

0 commit comments

Comments
 (0)