UNPKG
bsg
Version:
latest (2.0.5)
2.0.5
2.0.3
2.0.2
2.0.1
2.0.0
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0-alpha.11
1.0.0-alpha.10
1.0.0-alpha.9
1.0.0-alpha.8
1.0.0-alpha.7
1.0.0-alpha.6
1.0.0-alpha.5
1.0.0-alpha.4
1.0.0-alpha.3
1.0.0-alpha.2
Lint all in one tool for BSG-FE
bsg
/
lib
/
lint-staged
/
index.js
15 lines
(13 loc)
•
259 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module
.
exports
=
async
function
(
) {
const
lintStaged =
require
(
"lint-staged"
);
try
{
await
lintStaged
({
config
: {
"*"
:
"bsg lint --fix"
, }, }); }
catch
(e) {
// Failed to load configuration
console
.
error
(e); } };