File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
packages/eslint-config-eslint Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
"use strict" ;
11
11
12
+ const mod = require ( "node:module" ) ;
13
+
14
+ // to use V8's code cache to speed up instantiation time
15
+ mod . enableCompileCache ?. ( ) ;
16
+
12
17
// must do this initialization *before* other requires in order to work
13
18
if ( process . argv . includes ( "--debug" ) ) {
14
19
require ( "debug" ) . enable ( "eslint:*,-eslint:code-path,eslintrc:*" ) ;
Original file line number Diff line number Diff line change @@ -305,5 +305,17 @@ module.exports = [
305
305
rules : {
306
306
"expect-type/expect" : "error"
307
307
}
308
+ } ,
309
+ {
310
+ name : "eslint/bin" ,
311
+ files : [ "bin/eslint.js" ] ,
312
+ rules : {
313
+
314
+ /*
315
+ * it was introduced in Node.js v22.8.0
316
+ * refs: https://nodejs.org/en/blog/release/v22.8.0#new-js-api-for-compile-cache
317
+ */
318
+ "n/no-unsupported-features/node-builtins" : [ 2 , { ignores : [ "module.enableCompileCache" ] } ]
319
+ }
308
320
}
309
321
] ;
Original file line number Diff line number Diff line change 33
33
"@eslint-community/eslint-plugin-eslint-comments" : " ^4.3.0" ,
34
34
"@eslint/js" : " ^9.0.0" ,
35
35
"eslint-plugin-jsdoc" : " ^48.2.3" ,
36
- "eslint-plugin-n" : " ^17.2.0 " ,
36
+ "eslint-plugin-n" : " ^17.11.1 " ,
37
37
"eslint-plugin-unicorn" : " ^52.0.0"
38
38
},
39
39
"keywords" : [
You can’t perform that action at this time.
0 commit comments