@@ -76,6 +76,7 @@ function createInternalFilesPatterns(pattern = null) {
7676module . exports = [
7777 ...eslintConfigESLintCJS ,
7878{
79+ name :"eslint/global-ignores" ,
7980ignores :[
8081"build/**" ,
8182"coverage/**" ,
@@ -92,6 +93,7 @@ module.exports = [
9293]
9394} ,
9495{
96+ name :"eslint/internal-rules" ,
9597plugins :{
9698"internal-rules" :internalPlugin
9799} ,
@@ -103,13 +105,15 @@ module.exports = [
103105}
104106} ,
105107{
108+ name :"eslint/tools" ,
106109files :[ "tools/*.js" , "docs/tools/*.js" ] ,
107110rules :{
108111"no-console" :"off" ,
109112"n/no-process-exit" :"off"
110113}
111114} ,
112115{
116+ name :"eslint/rules" ,
113117files :[ "lib/rules/*" , "tools/internal-rules/*" ] ,
114118ignores :[ "**/index.js" ] ,
115119 ...eslintPluginRulesRecommendedConfig ,
@@ -123,13 +127,15 @@ module.exports = [
123127}
124128} ,
125129{
130+ name :"eslint/core-rules" ,
126131files :[ "lib/rules/*" ] ,
127132ignores :[ "**/index.js" ] ,
128133rules :{
129134"eslint-plugin/require-meta-docs-url" :[ "error" , { pattern :"https://eslint.org/docs/latest/rules/{{name}}" } ]
130135}
131136} ,
132137{
138+ name :"eslint/rules-tests" ,
133139files :[ "tests/lib/rules/*" , "tests/tools/internal-rules/*" ] ,
134140 ...eslintPluginTestsRecommendedConfig ,
135141rules :{
@@ -150,6 +156,7 @@ module.exports = [
150156}
151157} ,
152158{
159+ name :"eslint/tests" ,
153160files :[ "tests/**/*.js" ] ,
154161languageOptions :{
155162globals :{
@@ -166,6 +173,7 @@ module.exports = [
166173
167174// Restrict relative path imports
168175{
176+ name :"eslint/lib" ,
169177files :[ "lib/*" ] ,
170178ignores :[ "lib/unsupported-api.js" ] ,
171179rules :{
@@ -175,6 +183,7 @@ module.exports = [
175183}
176184} ,
177185{
186+ name :"eslint/cli-engine" ,
178187files :[ INTERNAL_FILES . CLI_ENGINE_PATTERN ] ,
179188rules :{
180189"n/no-restricted-require" :[ "error" , [
@@ -183,6 +192,7 @@ module.exports = [
183192}
184193} ,
185194{
195+ name :"eslint/linter" ,
186196files :[ INTERNAL_FILES . LINTER_PATTERN ] ,
187197rules :{
188198"n/no-restricted-require" :[ "error" , [
@@ -194,6 +204,7 @@ module.exports = [
194204}
195205} ,
196206{
207+ name :"eslint/rules" ,
197208files :[ INTERNAL_FILES . RULES_PATTERN ] ,
198209rules :{
199210"n/no-restricted-require" :[ "error" , [
@@ -207,6 +218,7 @@ module.exports = [
207218}
208219} ,
209220{
221+ name :"eslint/shared" ,
210222files :[ "lib/shared/**/*" ] ,
211223rules :{
212224"n/no-restricted-require" :[ "error" , [
@@ -219,6 +231,7 @@ module.exports = [
219231}
220232} ,
221233{
234+ name :"eslint/source-code" ,
222235files :[ INTERNAL_FILES . SOURCE_CODE_PATTERN ] ,
223236rules :{
224237"n/no-restricted-require" :[ "error" , [
@@ -232,6 +245,7 @@ module.exports = [
232245}
233246} ,
234247{
248+ name :"eslint/rule-tester" ,
235249files :[ INTERNAL_FILES . RULE_TESTER_PATTERN ] ,
236250rules :{
237251"n/no-restricted-require" :[ "error" , [