@form8ion/eslint-config-extender 12.0.0-beta.5 → 12.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -8
- package/example.js +12 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -57,6 +57,15 @@ const {scaffold, extendEslintConfig} = await import('@form8ion/eslint-config-ext
|
|
|
57
57
|
|
|
58
58
|
#### Execute
|
|
59
59
|
|
|
60
|
+
```javascript
|
|
61
|
+
const logger = {
|
|
62
|
+
info: () => undefined,
|
|
63
|
+
success: () => undefined,
|
|
64
|
+
warn: () => undefined,
|
|
65
|
+
error: () => undefined
|
|
66
|
+
};
|
|
67
|
+
```
|
|
68
|
+
|
|
60
69
|
##### Scaffolder Plugin
|
|
61
70
|
|
|
62
71
|
```javascript
|
|
@@ -102,7 +111,9 @@ const {scaffold, extendEslintConfig} = await import('@form8ion/eslint-config-ext
|
|
|
102
111
|
decisions,
|
|
103
112
|
configs: {},
|
|
104
113
|
plugins: {unitTestFrameworks: {}}
|
|
105
|
-
})
|
|
114
|
+
}, {logger}),
|
|
115
|
+
lift: options => javascriptPlugin.lift(options, {logger}),
|
|
116
|
+
test: options => javascriptPlugin.test(options, {logger})
|
|
106
117
|
}),
|
|
107
118
|
{
|
|
108
119
|
prompt: ({id}) => {
|
|
@@ -123,7 +134,7 @@ const {scaffold, extendEslintConfig} = await import('@form8ion/eslint-config-ext
|
|
|
123
134
|
return {
|
|
124
135
|
[PROJECT_NAME]: 'eslint-config-foo',
|
|
125
136
|
[DESCRIPTION]: 'a description of the project',
|
|
126
|
-
[VISIBILITY]: '
|
|
137
|
+
[VISIBILITY]: 'OSS',
|
|
127
138
|
[LICENSE]: 'MIT',
|
|
128
139
|
[COPYRIGHT_HOLDER]: 'John Smith',
|
|
129
140
|
[COPYRIGHT_YEAR]: '2022'
|
|
@@ -137,12 +148,7 @@ const {scaffold, extendEslintConfig} = await import('@form8ion/eslint-config-ext
|
|
|
137
148
|
throw new Error(`Unknown prompt: ${id}`);
|
|
138
149
|
}
|
|
139
150
|
},
|
|
140
|
-
logger
|
|
141
|
-
info: () => undefined,
|
|
142
|
-
success: () => undefined,
|
|
143
|
-
warn: () => undefined,
|
|
144
|
-
error: () => undefined
|
|
145
|
-
}
|
|
151
|
+
logger
|
|
146
152
|
}
|
|
147
153
|
);
|
|
148
154
|
})();
|
package/example.js
CHANGED
|
@@ -30,6 +30,13 @@ stubbedFs({node_modules: stubbedNodeModules});
|
|
|
30
30
|
|
|
31
31
|
// #### Execute
|
|
32
32
|
|
|
33
|
+
const logger = {
|
|
34
|
+
info: () => undefined,
|
|
35
|
+
success: () => undefined,
|
|
36
|
+
warn: () => undefined,
|
|
37
|
+
error: () => undefined
|
|
38
|
+
};
|
|
39
|
+
|
|
33
40
|
// ##### Scaffolder Plugin
|
|
34
41
|
|
|
35
42
|
(async () => {
|
|
@@ -72,7 +79,9 @@ stubbedFs({node_modules: stubbedNodeModules});
|
|
|
72
79
|
decisions,
|
|
73
80
|
configs: {},
|
|
74
81
|
plugins: {unitTestFrameworks: {}}
|
|
75
|
-
})
|
|
82
|
+
}, {logger}),
|
|
83
|
+
lift: options => javascriptPlugin.lift(options, {logger}),
|
|
84
|
+
test: options => javascriptPlugin.test(options, {logger})
|
|
76
85
|
}),
|
|
77
86
|
{
|
|
78
87
|
prompt: ({id}) => {
|
|
@@ -93,7 +102,7 @@ stubbedFs({node_modules: stubbedNodeModules});
|
|
|
93
102
|
return {
|
|
94
103
|
[PROJECT_NAME]: 'eslint-config-foo',
|
|
95
104
|
[DESCRIPTION]: 'a description of the project',
|
|
96
|
-
[VISIBILITY]: '
|
|
105
|
+
[VISIBILITY]: 'OSS',
|
|
97
106
|
[LICENSE]: 'MIT',
|
|
98
107
|
[COPYRIGHT_HOLDER]: 'John Smith',
|
|
99
108
|
[COPYRIGHT_YEAR]: '2022'
|
|
@@ -107,12 +116,7 @@ stubbedFs({node_modules: stubbedNodeModules});
|
|
|
107
116
|
throw new Error(`Unknown prompt: ${id}`);
|
|
108
117
|
}
|
|
109
118
|
},
|
|
110
|
-
logger
|
|
111
|
-
info: () => undefined,
|
|
112
|
-
success: () => undefined,
|
|
113
|
-
warn: () => undefined,
|
|
114
|
-
error: () => undefined
|
|
115
|
-
}
|
|
119
|
+
logger
|
|
116
120
|
}
|
|
117
121
|
);
|
|
118
122
|
})();
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@form8ion/eslint-config-extender",
|
|
3
3
|
"description": "shareable ESLint config scaffolder for extending another config",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "12.0.0-beta.
|
|
5
|
+
"version": "12.0.0-beta.6",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": "^22.21.0 || >=24.12"
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"packageManager": "npm@11.15.0+sha512.fa4d2d93b9519e93143e70bb913b94ff2ad5fe69c5a0f84943be557cbb59e9fc1bcce55768fb1313f225f4f9f50c78b8f366f2332aa41effd7b10efa98d8d72f",
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@form8ion/config-file": "^1.1.2",
|
|
60
|
-
"@form8ion/core": "^
|
|
61
|
-
"@form8ion/javascript": "^
|
|
60
|
+
"@form8ion/core": "^5.0.0-beta.10",
|
|
61
|
+
"@form8ion/javascript": "^16.0.0-beta.1",
|
|
62
62
|
"@form8ion/javascript-core": "^12.0.0",
|
|
63
63
|
"@form8ion/project": "^22.0.0-beta.19",
|
|
64
64
|
"deepmerge": "^4.2.2"
|