File tree Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Expand file tree Collapse file tree 3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ async function getMarkdownRecommendedConfig() {
60
60
61
61
"n/no-unpublished-import" : "off" ,
62
62
63
+ "n/no-missing-import" : "off" ,
64
+
65
+ "n/no-missing-require" : "off" ,
66
+
63
67
"import/no-unresolved" : "off" ,
64
68
65
69
"import/no-extraneous-dependencies" : "off" ,
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ const commonRules = {
38
38
// Deprecated
39
39
// "n/no-hide-core-modules": "error",
40
40
41
- // From recommended
42
- // "n/no-missing-import": "error ",
41
+ // We have `import/no-unresolved` rule
42
+ "n/no-missing-import" : "off " ,
43
43
44
- // From recommended
45
- // "n/no-missing-require": "error ",
44
+ // We have `import/no-unresolved` rule
45
+ "n/no-missing-require" : "off " ,
46
46
47
47
// No need
48
48
// "n/no-mixed-requires": "error",
@@ -144,6 +144,7 @@ async function getCommonJSConfig() {
144
144
import : importPlugin ,
145
145
} ,
146
146
rules : {
147
+ ...nodeConfig . rules ,
147
148
...commonRules ,
148
149
"n/exports-style" : "error" ,
149
150
"n/no-path-concat" : "error" ,
@@ -200,6 +201,7 @@ async function getModuleConfig() {
200
201
import : importPlugin ,
201
202
} ,
202
203
rules : {
204
+ ...nodeConfig . rules ,
203
205
...commonRules ,
204
206
"import/extensions" : [
205
207
"error" ,
Original file line number Diff line number Diff line change @@ -15,13 +15,28 @@ export default defineConfig([
15
15
{
16
16
files : [ "./validation/commonjs-package/**/*" ] ,
17
17
extends : [ configs [ "recommended-commonjs" ] ] ,
18
+ rules : {
19
+ "n/no-unpublished-require" : "off" ,
20
+ } ,
18
21
} ,
19
22
{
20
23
files : [ "./validation/module-package/**/*" ] ,
21
24
extends : [ configs [ "recommended-module" ] ] ,
25
+ rules : {
26
+ "n/no-unpublished-require" : "off" ,
27
+ } ,
22
28
} ,
23
29
{
24
30
files : [ "./validation/dirty-package/**/*" ] ,
25
31
extends : [ configs [ "recommended-dirty" ] ] ,
32
+ rules : {
33
+ "n/no-unpublished-require" : "off" ,
34
+ } ,
35
+ } ,
36
+ {
37
+ files : [ "./validation/hashbang.js" ] ,
38
+ rules : {
39
+ "n/hashbang" : "off" ,
40
+ } ,
26
41
} ,
27
42
] ) ;
You can’t perform that action at this time.
0 commit comments