/lint.js (fd5221fdd0b2ebcfb8d5f967d06abd4ec168ca5e) (359 bytes) (mode 100755) (type blob)
#!/usr/bin/env node
const { exec } = require("shelljs"),
{ print, stagedFiles } = require("./base"),
files = stagedFiles();
print(__filename);
const jsFiles = files.filter((file) => file.match(/.*\.js$/));
if (jsFiles.length > 1) {
const params = jsFiles.join(" "),
command = `npx prettier --write ${params}`;
print(command);
exec(command);
}
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
14 |
c2658d7d1b31848c3b71960543cb0368e56cd4c7 |
.gitignore |
100644 |
blob |
57 |
53c96310c475eeabc923002d22b12481321a1a3c |
.huskyrc |
100644 |
blob |
618 |
67b30c6e2b2f283733afa133d95b698fee02ebba |
base.js |
100644 |
blob |
117 |
dddb23dbee0d00f884f5122718c2430e1528d42a |
editorconfig |
100644 |
blob |
180 |
0208faea94aeffded051c856db1fc74037bf91bb |
gitconfig |
100755 |
blob |
947 |
043249eda9696b5a2cd1d893708e5f2524dc44cb |
install.js |
100755 |
blob |
359 |
fd5221fdd0b2ebcfb8d5f967d06abd4ec168ca5e |
lint.js |
100644 |
blob |
181 |
f77cfd5444d0c30875a5a74676d60758eb59aeb0 |
marks_bashrc |
100644 |
blob |
19146 |
6ab24c86ec741ab08a5ad069ecb912ef6430608b |
package-lock.json |
100644 |
blob |
443 |
d0443e7a229c67c59abbe01767eaca145fd95b7c |
package.json |
100755 |
blob |
570 |
c345066010605c940d4c7dcf5c522b7daf07b1d8 |
pre-commit.js |
100644 |
blob |
194 |
c3caa54faeaf89096c7e0190d7fb5965c1c5acaa |
vimrc |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/mucbuc/configs
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/mucbuc/configs
Clone this repository using git:
git clone git://git.rocketgit.com/user/mucbuc/configs
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main