@@ -4,7 +4,6 @@ const path = require("path");
4
4
5
5
const INTERNAL_FILES = {
6
6
CLI_ENGINE_PATTERN : "lib/cli-engine/**/*" ,
7
- INIT_PATTERN : "lib/init/**/*" ,
8
7
LINTER_PATTERN : "lib/linter/**/*" ,
9
8
RULE_TESTER_PATTERN : "lib/rule-tester/**/*" ,
10
9
RULES_PATTERN : "lib/rules/**/*" ,
@@ -114,17 +113,7 @@ module.exports = {
114
113
files : [ INTERNAL_FILES . CLI_ENGINE_PATTERN ] ,
115
114
rules : {
116
115
"node/no-restricted-require" : [ "error" , [
117
- ...createInternalFilesPatterns ( INTERNAL_FILES . CLI_ENGINE_PATTERN ) ,
118
- resolveAbsolutePath ( "lib/init/index.js" )
119
- ] ]
120
- }
121
- } ,
122
- {
123
- files : [ INTERNAL_FILES . INIT_PATTERN ] ,
124
- rules : {
125
- "node/no-restricted-require" : [ "error" , [
126
- ...createInternalFilesPatterns ( INTERNAL_FILES . INIT_PATTERN ) ,
127
- resolveAbsolutePath ( "lib/rule-tester/index.js" )
116
+ ...createInternalFilesPatterns ( INTERNAL_FILES . CLI_ENGINE_PATTERN )
128
117
] ]
129
118
}
130
119
} ,
@@ -135,7 +124,6 @@ module.exports = {
135
124
...createInternalFilesPatterns ( INTERNAL_FILES . LINTER_PATTERN ) ,
136
125
"fs" ,
137
126
resolveAbsolutePath ( "lib/cli-engine/index.js" ) ,
138
- resolveAbsolutePath ( "lib/init/index.js" ) ,
139
127
resolveAbsolutePath ( "lib/rule-tester/index.js" )
140
128
] ]
141
129
}
@@ -147,7 +135,6 @@ module.exports = {
147
135
...createInternalFilesPatterns ( INTERNAL_FILES . RULES_PATTERN ) ,
148
136
"fs" ,
149
137
resolveAbsolutePath ( "lib/cli-engine/index.js" ) ,
150
- resolveAbsolutePath ( "lib/init/index.js" ) ,
151
138
resolveAbsolutePath ( "lib/linter/index.js" ) ,
152
139
resolveAbsolutePath ( "lib/rule-tester/index.js" ) ,
153
140
resolveAbsolutePath ( "lib/source-code/index.js" )
@@ -160,7 +147,6 @@ module.exports = {
160
147
"node/no-restricted-require" : [ "error" , [
161
148
...createInternalFilesPatterns ( ) ,
162
149
resolveAbsolutePath ( "lib/cli-engine/index.js" ) ,
163
- resolveAbsolutePath ( "lib/init/index.js" ) ,
164
150
resolveAbsolutePath ( "lib/linter/index.js" ) ,
165
151
resolveAbsolutePath ( "lib/rule-tester/index.js" ) ,
166
152
resolveAbsolutePath ( "lib/source-code/index.js" )
@@ -174,7 +160,6 @@ module.exports = {
174
160
...createInternalFilesPatterns ( INTERNAL_FILES . SOURCE_CODE_PATTERN ) ,
175
161
"fs" ,
176
162
resolveAbsolutePath ( "lib/cli-engine/index.js" ) ,
177
- resolveAbsolutePath ( "lib/init/index.js" ) ,
178
163
resolveAbsolutePath ( "lib/linter/index.js" ) ,
179
164
resolveAbsolutePath ( "lib/rule-tester/index.js" ) ,
180
165
resolveAbsolutePath ( "lib/rules/index.js" )
@@ -186,8 +171,7 @@ module.exports = {
186
171
rules : {
187
172
"node/no-restricted-require" : [ "error" , [
188
173
...createInternalFilesPatterns ( INTERNAL_FILES . RULE_TESTER_PATTERN ) ,
189
- resolveAbsolutePath ( "lib/cli-engine/index.js" ) ,
190
- resolveAbsolutePath ( "lib/init/index.js" )
174
+ resolveAbsolutePath ( "lib/cli-engine/index.js" )
191
175
] ]
192
176
}
193
177
}
0 commit comments