feat: adding linter for commits
This commit is contained in:
14
node_modules/strip-indent/index.js
generated
vendored
Normal file
14
node_modules/strip-indent/index.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
const minIndent = require('min-indent');
|
||||
|
||||
module.exports = string => {
|
||||
const indent = minIndent(string);
|
||||
|
||||
if (indent === 0) {
|
||||
return string;
|
||||
}
|
||||
|
||||
const regex = new RegExp(`^[ \\t]{${indent}}`, 'gm');
|
||||
|
||||
return string.replace(regex, '');
|
||||
};
|
Reference in New Issue
Block a user