forked from newrelic/node-newrelic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
62 lines (60 loc) · 1.28 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
/*
* 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/no-undefined-types': [
'warn',
{
definedTypes: [
'Logger',
'Agent',
'Shim',
'TraceSegment',
'Transaction',
'Exception',
'MetricAggregator'
]
}
]
},
parserOptions: {
ecmaVersion: '2020'
},
parserOptions: {
ecmaVersion: 2020
},
ignorePatterns: ['test/versioned-external'],
overrides: [
{
files: ['**/*.mjs'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2022
},
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'
}
}
]
}