forked from newrelic/node-newrelic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
67 lines (65 loc) · 1.41 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
/*
* Copyright 2020 New Relic Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*/
'use strict'
module.exports = {
extends: ['@newrelic', 'plugin:jsdoc/recommended'],
plugins: ['jsdoc'],
rules: {
'consistent-return': 'off',
'jsdoc/require-jsdoc': 'off',
'jsdoc/tag-lines': 'off',
'jsdoc/check-types': 'off',
'jsdoc/no-undefined-types': [
'warn',
{
definedTypes: [
'Logger',
'Agent',
'Shim',
'MessageShim',
'TraceSegment',
'Transaction',
'Tracer',
'Exception',
'MetricAggregator',
'EventEmitter'
]
}
]
},
parserOptions: {
ecmaVersion: 2022
},
ignorePatterns: [
'test/versioned-external',
'test/versioned/nextjs/app',
'test/versioned/nextjs/app-dir'
],
overrides: [
{
files: ['**/*.mjs'],
parserOptions: {
sourceType: 'module'
},
rules: {
// TODO: remove this when we decide on how to address
// here: https://issues.newrelic.com/browse/NEWRELIC-3321
'node/no-unsupported-features/es-syntax': 'off'
}
},
{
files: ['newrelic.js'],
rules: {
'header/header': ['off']
}
},
{
files: ['./lib/shim/*.js', 'lib/transaction/handle.js', 'api.js'],
rules: {
'jsdoc/require-jsdoc': 'warn'
}
}
]
}