@@ -4,7 +4,6 @@ const path = require("path");
44
55const INTERNAL_FILES = {
66 CLI_ENGINE_PATTERN : "lib/cli-engine/**/*" ,
7- INIT_PATTERN : "lib/init/**/*" ,
87 LINTER_PATTERN : "lib/linter/**/*" ,
98 RULE_TESTER_PATTERN : "lib/rule-tester/**/*" ,
109 RULES_PATTERN : "lib/rules/**/*" ,
@@ -114,17 +113,7 @@ module.exports = {
114113 files : [ INTERNAL_FILES . CLI_ENGINE_PATTERN ] ,
115114 rules : {
116115 "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 )
128117 ] ]
129118 }
130119 } ,
@@ -135,7 +124,6 @@ module.exports = {
135124 ...createInternalFilesPatterns ( INTERNAL_FILES . LINTER_PATTERN ) ,
136125 "fs" ,
137126 resolveAbsolutePath ( "lib/cli-engine/index.js" ) ,
138- resolveAbsolutePath ( "lib/init/index.js" ) ,
139127 resolveAbsolutePath ( "lib/rule-tester/index.js" )
140128 ] ]
141129 }
@@ -147,7 +135,6 @@ module.exports = {
147135 ...createInternalFilesPatterns ( INTERNAL_FILES . RULES_PATTERN ) ,
148136 "fs" ,
149137 resolveAbsolutePath ( "lib/cli-engine/index.js" ) ,
150- resolveAbsolutePath ( "lib/init/index.js" ) ,
151138 resolveAbsolutePath ( "lib/linter/index.js" ) ,
152139 resolveAbsolutePath ( "lib/rule-tester/index.js" ) ,
153140 resolveAbsolutePath ( "lib/source-code/index.js" )
@@ -160,7 +147,6 @@ module.exports = {
160147 "node/no-restricted-require" : [ "error" , [
161148 ...createInternalFilesPatterns ( ) ,
162149 resolveAbsolutePath ( "lib/cli-engine/index.js" ) ,
163- resolveAbsolutePath ( "lib/init/index.js" ) ,
164150 resolveAbsolutePath ( "lib/linter/index.js" ) ,
165151 resolveAbsolutePath ( "lib/rule-tester/index.js" ) ,
166152 resolveAbsolutePath ( "lib/source-code/index.js" )
@@ -174,7 +160,6 @@ module.exports = {
174160 ...createInternalFilesPatterns ( INTERNAL_FILES . SOURCE_CODE_PATTERN ) ,
175161 "fs" ,
176162 resolveAbsolutePath ( "lib/cli-engine/index.js" ) ,
177- resolveAbsolutePath ( "lib/init/index.js" ) ,
178163 resolveAbsolutePath ( "lib/linter/index.js" ) ,
179164 resolveAbsolutePath ( "lib/rule-tester/index.js" ) ,
180165 resolveAbsolutePath ( "lib/rules/index.js" )
@@ -186,8 +171,7 @@ module.exports = {
186171 rules : {
187172 "node/no-restricted-require" : [ "error" , [
188173 ...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" )
191175 ] ]
192176 }
193177 }
0 commit comments