Skip to content

Commit 8163d05

Browse files
committed
fix formatting and add/fix comments
1 parent c531f8e commit 8163d05

File tree

20 files changed

+58
-12
lines changed

20 files changed

+58
-12
lines changed

.eslintrc.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Note: All paths are relative to the directory in which eslint is being run, rather than the directory where this file
2+
// lives
3+
14
module.exports = {
25
root: true,
36
env: {
@@ -7,15 +10,7 @@ module.exports = {
710
ecmaVersion: 2018,
811
},
912
extends: ['@sentry-internal/sdk'],
10-
ignorePatterns: [
11-
'coverage/**',
12-
'build/**',
13-
'dist/**',
14-
'esm/**',
15-
'examples/**',
16-
'scripts/**',
17-
'test/manual/**',
18-
],
13+
ignorePatterns: ['coverage/**', 'build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**', 'test/manual/**'],
1914
overrides: [
2015
{
2116
files: ['*.ts', '*.tsx', '*.d.ts'],

packages/angular/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
"experimentalDecorators": true
69
}
710
}

packages/browser/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
}
69
}

packages/core/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
}
69
}

packages/gatsby/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
"esModuleInterop": true,
69
"jsx": "react"
710
}

packages/hub/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
}
69
}

packages/integrations/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
"esModuleInterop": true,
69
}
710
}

packages/minimal/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
}
69
}

packages/nextjs/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
}
69
}

packages/node/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
}
69
}

packages/react/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
"esModuleInterop": true,
69
"jsx": "react"
710
}

packages/serverless/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
"target": "ES2018",
69
}
710
}

packages/tracing/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
}
69
}

packages/types/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
}
69
}

packages/typescript/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ Add the following config files to your project's root directory:
5656
}
5757
}
5858
```
59+
60+
For an example of how to use this package in a monorepo, check out this package's own parent repo, https://github.com/getsentry/sentry-javascript.

packages/typescript/tslint.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"ban-ts-ignore": false,
1919
"increment-decrement": false,
2020
"promise-function-async": false,
21-
"ban-types": [true, ["async", "Use Promises instead, it add a lot to bundle size."]],
21+
"ban-types": [true, ["async", "Use Promises instead, as async/await adds a lot to bundle size."]],
2222
// These are too strict in tslint:all
2323
"comment-format": [true, "check-space"],
2424
"completed-docs": [
@@ -77,7 +77,8 @@
7777
"variable-name": [true, "check-format", "allow-leading-underscore", "ban-keywords"],
7878
"naming-convention": [
7979
true,
80-
// this config will apply to properties AND methods, if you only need it for properties, use "property" instead of "member"
80+
// This config will apply to properties AND methods. If you only need it for properties, use "property" instead of
81+
// "member".
8182
{ "type": "member", "modifiers": "protected", "leadingUnderscore": "require" },
8283
{ "type": "member", "modifiers": "private", "leadingUnderscore": "require" }
8384
],

packages/utils/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
}
69
}

packages/vue/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
"esModuleInterop": true,
69
}
710
}

packages/wasm/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"extends": "../../tsconfig.json",
3+
34
"include": ["src/**/*"],
5+
46
"compilerOptions": {
7+
// package-specific options
58
"esModuleInterop": true,
69
}
710
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"compilerOptions": {
55
"allowSyntheticDefaultImports": true,
66
"types": ["node"],
7-
"noErrorTruncation": true
7+
"noErrorTruncation": true // move me up to @sentry/typescript
88
}
99
}

0 commit comments

Comments
 (0)