@@ -40,67 +40,69 @@ test("Producing the everything preset matches the files in this repository", asy
40
40
} ) ) as IntakeDirectory ;
41
41
42
42
const created = producePreset ( presets . everything , {
43
- addons : [
44
- blockCodecov ( {
45
- env : {
46
- CODECOV_TOKEN : "${{ secrets.CODECOV_TOKEN }}" ,
47
- } ,
48
- } ) ,
49
- blockCSpell ( {
50
- words : [
51
- "Anson" ,
52
- "apexskier" ,
53
- "dbaeumer" ,
54
- "joshuakgoldberg" ,
55
- "markdownlintignore" ,
56
- "mtfoley" ,
57
- "infile" ,
58
- "npmjs" ,
59
- ] ,
60
- } ) ,
61
- blockESLint ( {
62
- explanations : [
63
- `👋 Hi! This ESLint configuration contains a lot more stuff than many repos'!
43
+ options : ( await prepareOptions ( base ) ) as BaseOptions ,
44
+ refinements : {
45
+ addons : [
46
+ blockCodecov ( {
47
+ env : {
48
+ CODECOV_TOKEN : "${{ secrets.CODECOV_TOKEN }}" ,
49
+ } ,
50
+ } ) ,
51
+ blockCSpell ( {
52
+ words : [
53
+ "Anson" ,
54
+ "apexskier" ,
55
+ "dbaeumer" ,
56
+ "joshuakgoldberg" ,
57
+ "markdownlintignore" ,
58
+ "mtfoley" ,
59
+ "infile" ,
60
+ "npmjs" ,
61
+ ] ,
62
+ } ) ,
63
+ blockESLint ( {
64
+ explanations : [
65
+ `👋 Hi! This ESLint configuration contains a lot more stuff than many repos'!
64
66
You can read from it to see all sorts of linting goodness, but don't worry -
65
67
it's not something you need to exhaustively understand immediately. 💙
66
68
67
69
If you're interested in learning more, see the 'getting started' docs on:
68
70
- ESLint: https://eslint.org
69
71
- typescript-eslint: https://typescript-eslint.io` ,
70
- ] ,
71
- rules : [
72
- {
73
- comment :
74
- "These on-by-default rules work well for this repo if configured" ,
75
- entries : {
76
- "@typescript-eslint/prefer-nullish-coalescing" : [
77
- "error" ,
78
- { ignorePrimitives : true } ,
79
- ] ,
80
- "@typescript-eslint/restrict-template-expressions" : [
81
- "error" ,
82
- { allowBoolean : true , allowNullish : true , allowNumber : true } ,
83
- ] ,
72
+ ] ,
73
+ rules : [
74
+ {
75
+ comment :
76
+ "These on-by-default rules work well for this repo if configured" ,
77
+ entries : {
78
+ "@typescript-eslint/prefer-nullish-coalescing" : [
79
+ "error" ,
80
+ { ignorePrimitives : true } ,
81
+ ] ,
82
+ "@typescript-eslint/restrict-template-expressions" : [
83
+ "error" ,
84
+ { allowBoolean : true , allowNullish : true , allowNumber : true } ,
85
+ ] ,
86
+ } ,
84
87
} ,
85
- } ,
86
- ] ,
87
- } ) ,
88
- blockKnip ( {
89
- ignoreDependencies : [
90
- "all-contributors-cli ",
91
- "cspell-populate-words ",
92
- "remove-dependencies" ,
93
- ] ,
94
- } ) ,
95
- blockTSup ( {
96
- runArgs : [ "--version" ] ,
97
- } ) ,
98
- ] ,
99
- blocks : {
100
- add : [ blockAreTheTypesWrong ] ,
101
- exclude : [ blockTemplatedWith ] ,
88
+ ] ,
89
+ } ) ,
90
+ blockKnip ( {
91
+ ignoreDependencies : [
92
+ "all-contributors-cli" ,
93
+ "cspell-populate-words ",
94
+ "remove-dependencies ",
95
+ ] ,
96
+ } ) ,
97
+ blockTSup ( {
98
+ runArgs : [ "--version" ] ,
99
+ } ) ,
100
+ ] ,
101
+ blocks : {
102
+ add : [ blockAreTheTypesWrong ] ,
103
+ exclude : [ blockTemplatedWith ] ,
104
+ } ,
102
105
} ,
103
- options : ( await prepareOptions ( base ) ) as BaseOptions ,
104
106
} ) ;
105
107
106
108
const processText = ( text : string , filePath : string ) =>
0 commit comments