@@ -40,11 +40,21 @@ export default [
40
40
} ,
41
41
{ name : '@eslint/js/recommnded' , ...js . configs . recommended } ,
42
42
...compat . extends ( 'standard' ) . map ( ( config , i ) => ( { name : config . name || `standard/${ i + 1 } ` , ...config } ) ) ,
43
+ {
44
+ ...n . configs [ 'flat/recommended' ] ,
45
+ ignores : [
46
+ 'packages/dd-trace/test/appsec/next/app-dir/**/*.js' ,
47
+ 'packages/dd-trace/test/appsec/next/pages-dir/**/*.js' ,
48
+ 'packages/datadog-plugin-next/test/app/**/*.js' ,
49
+ 'packages/datadog-plugin-next/test/**/pages/**/*.js' ,
50
+ 'packages/datadog-plugin-next/test/middleware.js' ,
51
+ '**/*.mjs' // TODO: This shoudln't be required, research why it is
52
+ ]
53
+ } ,
43
54
{
44
55
name : 'dd-trace/defaults' ,
45
56
46
57
plugins : {
47
- n,
48
58
'@stylistic/js' : stylistic
49
59
} ,
50
60
@@ -72,6 +82,15 @@ export default [
72
82
'@stylistic/js/object-curly-spacing' : [ 'error' , 'always' ] ,
73
83
'import/no-extraneous-dependencies' : 'error' ,
74
84
'n/no-restricted-require' : [ 'error' , [ 'diagnostics_channel' ] ] ,
85
+ 'n/hashbang' : 'off' , // TODO: Enable this rule once we have a plan to address it
86
+ 'n/no-process-exit' : 'off' , // TODO: Enable this rule once we have a plan to address it
87
+ 'n/no-unsupported-features/node-builtins' : [ 'error' , {
88
+ ignores : [
89
+ 'async_hooks.createHook' ,
90
+ 'async_hooks.executionAsyncId' ,
91
+ 'async_hooks.executionAsyncResource'
92
+ ]
93
+ } ] ,
75
94
'no-console' : 'error' ,
76
95
'no-prototype-builtins' : 'off' , // Override (turned on by @eslint/js/recommnded)
77
96
'no-unused-expressions' : 'off' , // Override (turned on by standard)
@@ -107,7 +126,8 @@ export default [
107
126
'mocha/no-sibling-hooks' : 'off' ,
108
127
'mocha/no-skipped-tests' : 'off' ,
109
128
'mocha/no-top-level-hooks' : 'off' ,
110
- 'n/handle-callback-err' : 'off'
129
+ 'n/handle-callback-err' : 'off' ,
130
+ 'n/no-missing-require' : 'off'
111
131
}
112
132
} ,
113
133
{
0 commit comments