feat: adding linter for commits
This commit is contained in:
10
node_modules/min-indent/index.js
generated
vendored
Normal file
10
node_modules/min-indent/index.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
module.exports = string => {
|
||||
const match = string.match(/^[ \t]*(?=\S)/gm);
|
||||
|
||||
if (!match) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return match.reduce((r, a) => Math.min(r, a.length), Infinity);
|
||||
};
|
Reference in New Issue
Block a user