This repository was archived by the owner on Sep 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.js
68 lines (68 loc) · 1.5 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
root: true,
env: {
es6: true,
},
parserOptions: {
ecmaVersion: 2018,
},
rules: {
'@sentry-internal/sdk/no-optional-chaining': 'off',
'@sentry-internal/sdk/no-nullish-coalescing': 'off',
'@sentry-internal/sdk/no-unsupported-es6-methods': 'off',
'@sentry-internal/sdk/no-class-field-initializers': 'off',
},
extends: ['@sentry-internal/sdk/src/base'],
ignorePatterns: [
'coverage/**',
'build/**',
'lib/**',
'dist/**',
'cjs/**',
'esm/**',
'examples/**',
'test/manual/**',
'benchmarks/**',
'playground/**',
'demo_app/**',
'test-binaries.entry.js',
'jest.config.ts'
],
overrides: [
{
files: ['*.ts', '*.tsx', '*.d.ts'],
parserOptions: {
project: ['tsconfig.json'],
},
},
{
files: ['test/**/*.ts', 'test/**/*.tsx'],
parserOptions: {
project: ['tsconfig.test.json'],
},
},
{
files: ['jest/**/*.ts', 'scripts/**/*.ts'],
parserOptions: {
project: ['tsconfig.dev.json'],
},
},
{
files: ['*.tsx'],
rules: {
// Turn off jsdoc on tsx files until jsdoc is fixed for tsx files
// See: https://github.com/getsentry/sentry-javascript/issues/3871
'jsdoc/require-jsdoc': 'off',
},
},
{
files: ['scenarios/**', 'dev-packages/rollup-utils/**'],
parserOptions: {
sourceType: 'module',
},
rules: {
'no-console': 'off',
},
},
],
};