This repository was archived by the owner on Feb 9, 2025. It is now read-only.
File tree 4 files changed +20
-0
lines changed
4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 4
4
const options = require ( "./options.js" ) ;
5
5
const globPatterns = require ( "./glob-patterns.js" ) ;
6
6
const tests = require ( "./tests.js" ) ;
7
+ const configs = require ( "./configs.js" ) ;
7
8
8
9
module . exports = {
9
10
parser : "@babel/eslint-parser" ,
@@ -594,5 +595,9 @@ module.exports = {
594
595
files : globPatterns . tests ,
595
596
...tests ,
596
597
} ,
598
+ {
599
+ files : globPatterns . configs ,
600
+ ...configs ,
601
+ } ,
597
602
] ,
598
603
} ;
Original file line number Diff line number Diff line change
1
+ /* eslint sort-keys: ["error", "asc"] */
2
+ /* eslint-disable sort-keys */
3
+
4
+ module . exports = {
5
+ env : {
6
+ node : true ,
7
+ } ,
8
+ rules : {
9
+ // Config files are usually not imported anywhere else so this is fine
10
+ "import/no-anonymous-default-export" : "off" ,
11
+ } ,
12
+ } ;
Original file line number Diff line number Diff line change @@ -17,4 +17,5 @@ module.exports = {
17
17
] ,
18
18
typescript : [ "*.ts" , "*.tsx" ] ,
19
19
react : [ "*.jsx" , "*.tsx" ] ,
20
+ configs : [ "*.config.*" ] ,
20
21
} ;
Original file line number Diff line number Diff line change
1
+ // Should not generate an error in .config-files
2
+ export default { } ;
You can’t perform that action at this time.
0 commit comments