Skip to content

Commit 026e6e0

Browse files
committed
ref(eslint): Consolidate packages to minimum
Certain packages (browser, react, nextjs, serverless, node) skipped as they are more involved.
1 parent bcf30ca commit 026e6e0

File tree

13 files changed

+47
-225
lines changed

13 files changed

+47
-225
lines changed

.eslintrc.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
es6: true,
5+
},
6+
parserOptions: {
7+
ecmaVersion: 2018,
8+
},
9+
extends: ['@sentry-internal/sdk'],
10+
ignorePatterns: [
11+
'coverage/**',
12+
'build/**',
13+
'dist/**',
14+
'esm/**',
15+
'cjs/**',
16+
'examples/**',
17+
'scripts/**',
18+
'test/manual/**',
19+
],
20+
overrides: [
21+
{
22+
files: ['*.ts', '*.tsx', '*.d.ts'],
23+
parserOptions: {
24+
project: './tsconfig.json',
25+
},
26+
}
27+
],
28+
};

packages/angular/.eslintrc.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
11
module.exports = {
2-
root: true,
32
env: {
43
es6: true,
54
browser: true,
65
},
7-
parserOptions: {
8-
ecmaVersion: 2018,
9-
},
10-
extends: ['@sentry-internal/sdk'],
11-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
12-
overrides: [
13-
{
14-
files: ['*.ts', '*.tsx', '*.d.ts'],
15-
parserOptions: {
16-
project: './tsconfig.json',
17-
},
18-
},
19-
],
6+
extends: ['../../.eslintrc.js'],
207
};

packages/core/.eslintrc.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
11
module.exports = {
2-
root: true,
32
env: {
43
es6: true,
54
},
6-
parserOptions: {
7-
ecmaVersion: 2018,
8-
},
9-
extends: ['@sentry-internal/sdk'],
10-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
11-
overrides: [
12-
{
13-
files: ['*.ts', '*.tsx', '*.d.ts'],
14-
parserOptions: {
15-
project: './tsconfig.json',
16-
},
17-
},
18-
{
19-
files: ['test/**'],
20-
rules: {
21-
'@typescript-eslint/no-explicit-any': 'off',
22-
'@typescript-eslint/no-non-null-assertion': 'off',
23-
},
24-
},
25-
],
5+
extends: ['../../.eslintrc.js'],
266
};

packages/eslint-config-sdk/src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ module.exports = {
172172
'@typescript-eslint/no-unused-expressions': 'off',
173173
'@typescript-eslint/no-unsafe-member-access': 'off',
174174
'@typescript-eslint/explicit-member-accessibility': 'off',
175+
'@typescript-eslint/no-explicit-any': 'off',
176+
'@typescript-eslint/no-non-null-assertion': 'off',
175177
},
176178
},
177179
{

packages/gatsby/.eslintrc.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
module.exports = {
2-
root: true,
32
env: {
43
es6: true,
54
browser: true,
65
node: true,
76
},
87
parserOptions: {
9-
ecmaVersion: 2018,
108
jsx: true,
119
},
12-
extends: ['@sentry-internal/sdk'],
13-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
14-
overrides: [
15-
{
16-
files: ['*.ts', '*.tsx', '*.d.ts'],
17-
parserOptions: {
18-
project: './tsconfig.json',
19-
},
20-
},
21-
],
10+
extends: ['../../.eslintrc.js'],
2211
};
12+

packages/hub/.eslintrc.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
11
module.exports = {
2-
root: true,
32
env: {
43
es6: true,
54
},
6-
parserOptions: {
7-
ecmaVersion: 2018,
8-
},
9-
extends: ['@sentry-internal/sdk'],
10-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
11-
overrides: [
12-
{
13-
files: ['*.ts', '*.tsx', '*.d.ts'],
14-
parserOptions: {
15-
project: './tsconfig.json',
16-
},
17-
},
18-
{
19-
files: ['test/**'],
20-
rules: {
21-
'@typescript-eslint/no-explicit-any': 'off',
22-
'@typescript-eslint/no-non-null-assertion': 'off',
23-
},
24-
},
25-
],
5+
extends: ['../../.eslintrc.js'],
266
};
7+

packages/integrations/.eslintrc.js

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,7 @@
11
module.exports = {
2-
root: true,
32
env: {
43
es6: true,
54
},
6-
parserOptions: {
7-
ecmaVersion: 2018,
8-
},
9-
extends: ['@sentry-internal/sdk'],
10-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
11-
overrides: [
12-
{
13-
files: ['*.ts', '*.tsx', '*.d.ts'],
14-
parserOptions: {
15-
project: './tsconfig.json',
16-
},
17-
},
18-
{
19-
files: ['test/**'],
20-
env: {
21-
mocha: true,
22-
},
23-
rules: {
24-
'@typescript-eslint/no-explicit-any': 'off',
25-
'@typescript-eslint/no-non-null-assertion': 'off',
26-
},
27-
},
28-
],
5+
extends: ['../../.eslintrc.js'],
296
};
7+

packages/minimal/.eslintrc.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
11
module.exports = {
2-
root: true,
32
env: {
43
es6: true,
54
},
6-
parserOptions: {
7-
ecmaVersion: 2018,
8-
},
9-
extends: ['@sentry-internal/sdk'],
10-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
11-
overrides: [
12-
{
13-
files: ['*.ts', '*.tsx', '*.d.ts'],
14-
parserOptions: {
15-
project: './tsconfig.json',
16-
},
17-
},
18-
{
19-
files: ['test/**'],
20-
rules: {
21-
'@typescript-eslint/no-explicit-any': 'off',
22-
'@typescript-eslint/no-non-null-assertion': 'off',
23-
},
24-
},
25-
],
5+
extends: ['../../.eslintrc.js'],
266
};
7+

packages/tracing/.eslintrc.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,6 @@
11
module.exports = {
2-
root: true,
32
env: {
43
es6: true,
54
},
6-
parserOptions: {
7-
ecmaVersion: 2018,
8-
},
9-
extends: ['@sentry-internal/sdk'],
10-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
11-
overrides: [
12-
{
13-
files: ['*.ts', '*.tsx', '*.d.ts'],
14-
parserOptions: {
15-
project: './tsconfig.json',
16-
},
17-
},
18-
{
19-
files: ['test/**'],
20-
rules: {
21-
'@typescript-eslint/no-explicit-any': 'off',
22-
'@typescript-eslint/no-non-null-assertion': 'off',
23-
},
24-
},
25-
],
5+
extends: ['../../.eslintrc.js'],
266
};

packages/types/.eslintrc.js

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
11
module.exports = {
2-
root: true,
3-
env: {
4-
es6: true,
5-
},
6-
parserOptions: {
7-
ecmaVersion: 2018,
8-
},
9-
extends: ['@sentry-internal/sdk'],
10-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
11-
overrides: [
12-
{
13-
files: ['*.ts', '*.tsx', '*.d.ts'],
14-
parserOptions: {
15-
project: './tsconfig.json',
16-
},
17-
},
18-
],
19-
rules: {
20-
'@typescript-eslint/no-explicit-any': 'off',
21-
},
2+
extends: ['../../.eslintrc.js'],
223
};
4+

packages/utils/.eslintrc.js

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,4 @@
11
module.exports = {
2-
root: true,
3-
env: {
4-
es6: true,
5-
},
6-
parserOptions: {
7-
ecmaVersion: 2018,
8-
},
9-
extends: ['@sentry-internal/sdk'],
10-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
11-
overrides: [
12-
{
13-
files: ['*.ts', '*.tsx', '*.d.ts'],
14-
parserOptions: {
15-
project: './tsconfig.json',
16-
},
17-
},
18-
{
19-
files: ['test/**'],
20-
rules: {
21-
'@typescript-eslint/no-explicit-any': 'off',
22-
'@typescript-eslint/no-non-null-assertion': 'off',
23-
},
24-
},
25-
],
26-
rules: {
27-
'max-lines': 'off',
28-
},
2+
extends: ['../../.eslintrc.js'],
293
};
4+

packages/vue/.eslintrc.js

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,7 @@
11
module.exports = {
2-
root: true,
32
env: {
43
es6: true,
54
browser: true,
65
},
7-
parserOptions: {
8-
ecmaVersion: 2018,
9-
jsx: true,
10-
},
11-
extends: ['@sentry-internal/sdk'],
12-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
13-
overrides: [
14-
{
15-
files: ['*.ts', '*.d.ts'],
16-
parserOptions: {
17-
project: './tsconfig.json',
18-
},
19-
},
20-
],
21-
rules: {
22-
'react/prop-types': 'off',
23-
'@typescript-eslint/no-unsafe-member-access': 'off',
24-
'@typescript-eslint/no-explicit-any': 'off',
25-
},
6+
extends: ['../../.eslintrc.js'],
267
};

packages/wasm/.eslintrc.js

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,6 @@
11
module.exports = {
2-
root: true,
32
env: {
43
es6: true,
54
},
6-
parserOptions: {
7-
ecmaVersion: 2018,
8-
},
9-
extends: ['@sentry-internal/sdk'],
10-
ignorePatterns: ['build/**', 'dist/**', 'esm/**', 'examples/**', 'scripts/**'],
11-
overrides: [
12-
{
13-
files: ['*.ts', '*.tsx', '*.d.ts'],
14-
parserOptions: {
15-
project: './tsconfig.json',
16-
},
17-
},
18-
{
19-
files: ['test/**'],
20-
rules: {
21-
'@typescript-eslint/no-explicit-any': 'off',
22-
'@typescript-eslint/no-non-null-assertion': 'off',
23-
},
24-
},
25-
],
26-
rules: {
27-
'max-lines': 'off',
28-
},
5+
extends: ['../../.eslintrc.js'],
296
};

0 commit comments

Comments
 (0)