@adbayb/stack 0.0.0-next-695c49a → 0.0.0-next-fa0735e
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/configs/eslint/presets/unicorn.js +1 -1
- package/dist/index.js +9 -13
- package/package.json +1 -1
|
@@ -76,7 +76,7 @@ export const config = [
|
|
|
76
76
|
"unicorn/prefer-dom-node-remove": "error",
|
|
77
77
|
"unicorn/prefer-dom-node-text-content": "error",
|
|
78
78
|
"unicorn/prefer-event-target": "error",
|
|
79
|
-
"unicorn/prefer-export-from": "error",
|
|
79
|
+
"unicorn/prefer-export-from": ["error", { ignoreUsedVariables: true }],
|
|
80
80
|
"unicorn/prefer-global-this": "error",
|
|
81
81
|
"unicorn/prefer-includes": "error",
|
|
82
82
|
"unicorn/prefer-keyboard-event-key": "error",
|
package/dist/index.js
CHANGED
|
@@ -149,19 +149,13 @@ const logCheckableFiles = (files)=>{
|
|
|
149
149
|
if (files.length === 0) {
|
|
150
150
|
helpers.message("The whole project will be checked.", {
|
|
151
151
|
label: false,
|
|
152
|
-
lineBreak:
|
|
153
|
-
end: true,
|
|
154
|
-
start: false
|
|
155
|
-
}
|
|
152
|
+
lineBreak: true
|
|
156
153
|
});
|
|
157
154
|
return;
|
|
158
155
|
}
|
|
159
156
|
helpers.message(files.join("\n "), {
|
|
160
157
|
label: "Following files will be checked:",
|
|
161
|
-
lineBreak:
|
|
162
|
-
end: true,
|
|
163
|
-
start: false
|
|
164
|
-
}
|
|
158
|
+
lineBreak: true
|
|
165
159
|
});
|
|
166
160
|
};
|
|
167
161
|
const changeset = async (command)=>{
|
|
@@ -186,7 +180,7 @@ const ESLINT_EXTENSIONS = [
|
|
|
186
180
|
"mdx"
|
|
187
181
|
];
|
|
188
182
|
|
|
189
|
-
var version = "0.0.0-next-
|
|
183
|
+
var version = "0.0.0-next-fa0735e";
|
|
190
184
|
|
|
191
185
|
const createWatchCommand = (program)=>{
|
|
192
186
|
program.command({
|
|
@@ -546,6 +540,10 @@ const createCleanCommand = (program)=>{
|
|
|
546
540
|
handler ({ files }) {
|
|
547
541
|
helpers.message(files.join("\n "), {
|
|
548
542
|
label: "Removed assets",
|
|
543
|
+
lineBreak: {
|
|
544
|
+
end: false,
|
|
545
|
+
start: true
|
|
546
|
+
},
|
|
549
547
|
type: "information"
|
|
550
548
|
});
|
|
551
549
|
},
|
|
@@ -716,9 +714,7 @@ const createCheckCommand = (program)=>{
|
|
|
716
714
|
handler (_, argv) {
|
|
717
715
|
logCheckableFiles(argv.operands);
|
|
718
716
|
},
|
|
719
|
-
skip (
|
|
720
|
-
return only === "commit";
|
|
721
|
-
}
|
|
717
|
+
skip: ifOnlyDefinedAndNotEqualTo("linter")
|
|
722
718
|
}).task({
|
|
723
719
|
label: label("Prepare the project"),
|
|
724
720
|
async handler () {
|
|
@@ -728,7 +724,7 @@ const createCheckCommand = (program)=>{
|
|
|
728
724
|
});
|
|
729
725
|
},
|
|
730
726
|
skip ({ only }) {
|
|
731
|
-
return only === "commit"; // No need to build if only
|
|
727
|
+
return only === "commit"; // No need to build if only commit is checked
|
|
732
728
|
}
|
|
733
729
|
}).task({
|
|
734
730
|
label: label("Check package guidelines"),
|