Skip to content

Commit d36f12f

Browse files
authored
chore: remove lib/init from eslint config (#15748)
1 parent a59a4e6 commit d36f12f

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.eslintrc.js

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const path = require("path");
44

55
const 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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy