@p8ec/shared 2.2.1 → 2.2.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.
|
@@ -117,11 +117,11 @@ const init = (option) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
117
117
|
writeLn('Creating lefthook.yml...');
|
|
118
118
|
copyAsset('lefthook.yml');
|
|
119
119
|
writeLn('Adding lefthook install to postinstall...');
|
|
120
|
-
|
|
120
|
+
const lefthookInstall = 'lefthook install';
|
|
121
|
+
packageJson.scripts.postinstall = lefthookInstall;
|
|
121
122
|
const npmInstall = 'npm install --save-dev @commitlint/{config-conventional,cli} commitlint lefthook';
|
|
122
123
|
writeLn(`Executing ${npmInstall}...`);
|
|
123
124
|
execShell(npmInstall);
|
|
124
|
-
const lefthookInstall = 'lefthook install';
|
|
125
125
|
writeLn(`Executing ${lefthookInstall}...`);
|
|
126
126
|
execShell(lefthookInstall);
|
|
127
127
|
}
|
|
@@ -55,6 +55,14 @@ exports.default = (override) => {
|
|
|
55
55
|
trailingNewlines: 2,
|
|
56
56
|
},
|
|
57
57
|
],
|
|
58
|
+
'@typescript-eslint/no-unused-vars': [
|
|
59
|
+
'warn',
|
|
60
|
+
{
|
|
61
|
+
argsIgnorePattern: '^_',
|
|
62
|
+
varsIgnorePattern: '^_',
|
|
63
|
+
caughtErrorsIgnorePattern: '^_',
|
|
64
|
+
},
|
|
65
|
+
],
|
|
58
66
|
},
|
|
59
67
|
}, Object.assign({}, override === null || override === void 0 ? void 0 : override.eslintConfig));
|
|
60
68
|
};
|
|
@@ -27,6 +27,14 @@ export default (override) => {
|
|
|
27
27
|
trailingNewlines: 2,
|
|
28
28
|
},
|
|
29
29
|
],
|
|
30
|
+
'@typescript-eslint/no-unused-vars': [
|
|
31
|
+
'warn',
|
|
32
|
+
{
|
|
33
|
+
argsIgnorePattern: '^_',
|
|
34
|
+
varsIgnorePattern: '^_',
|
|
35
|
+
caughtErrorsIgnorePattern: '^_',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
30
38
|
},
|
|
31
39
|
}, Object.assign({}, override === null || override === void 0 ? void 0 : override.eslintConfig));
|
|
32
40
|
};
|