@naturalcycles/dev-lib 13.11.1 → 13.11.3
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/cfg/eslint-rules.js
CHANGED
|
@@ -336,6 +336,7 @@ module.exports = {
|
|
|
336
336
|
'unicorn/no-process-exit': 0,
|
|
337
337
|
'unicorn/no-array-push-push': 0,
|
|
338
338
|
'unicorn/no-abusive-eslint-disable': 0,
|
|
339
|
+
'unicorn/no-negated-condition': 0,
|
|
339
340
|
'unicorn/number-literal-case': 0, // conflicts with prettier
|
|
340
341
|
'unicorn/prevent-abbreviations': 0,
|
|
341
342
|
'unicorn/prefer-module': 0,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.lintAllCommand = void 0;
|
|
4
4
|
const fs = require("node:fs");
|
|
5
|
+
const js_lib_1 = require("@naturalcycles/js-lib");
|
|
5
6
|
const yargs = require("yargs");
|
|
6
7
|
const git_util_1 = require("../util/git.util");
|
|
7
8
|
const prettier_util_1 = require("../util/prettier.util");
|
|
@@ -38,7 +39,9 @@ async function lintAllCommand() {
|
|
|
38
39
|
console.log(`lint-all: there are changes before running lint-all, will not commit`);
|
|
39
40
|
}
|
|
40
41
|
else {
|
|
41
|
-
const msg = 'style(ci): ' +
|
|
42
|
+
const msg = 'style(ci): ' +
|
|
43
|
+
(0, js_lib_1._truncate)((0, git_util_1.commitMessageToTitleMessage)(await (0, git_util_1.getLastGitCommitMsg)()), 60) +
|
|
44
|
+
'\n\n[skip ci]';
|
|
42
45
|
// pull, commit, push changes
|
|
43
46
|
await (0, git_util_1.gitPull)();
|
|
44
47
|
await (0, git_util_1.gitCommitAll)(msg);
|