Commit graph

6 commits

Author SHA1 Message Date
f85a6a2b90
CI(.arclint): use pinterest-linters
Summary:
Thanks pinterest!

Also:
- fix yamllint and update .gitattributes, and make deploy.sh executable by `chmod +x`.
- install linting npm packages.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `arc lint`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D326
2024-06-16 17:31:04 +09:00
c98952d447
CI(arclint): fix jshint/json
Summary:
 - jshint: config @ `.jshint.json`
 - json: track sublime-settings
 - remove jsonlint (see {D214})
 - `npm install --save-dev jshint`

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `npm run p:c .`, 'arc lint`.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D231
2024-06-10 03:30:49 +09:00
5e2a2c7516
gitconfig: add some extra rules
Summary:
From https://github.com/simnalamburt/.dotfiles/blob/main/.gitconfig

Apache-2.0 license used.

Also:

 - fix `npm run` command
 - fix incorrect `.gitconfig` rule.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Not really as well.

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D225
2024-06-09 21:30:25 +09:00
9b0fbcc55d
npx prettier --write .
Summary:
Also:

- add prettier config and prettierignore
- add quick `npm run` alias.

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: `npm run pcheck`, `npm run pwrite`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D212
2024-06-08 16:38:14 +09:00
d5b6e05a86
gitalias: add more rules
Summary:
 - add !command in correct sections to prevent mistakes
 - alphabetize
 - `diffs` for `diff --staged`
 - `prod` to quick deploy to `prod` branch for some repos.
 - `staash` for `stash -a`

also:
 - add `max_line_length: 80` to editorconfig
 - autofix `TXT1` rule for `.arclint`
 - `rerere.autoUpdate = tru` for `gitconfig`
 - add prettier
 - fix nfty.yml
 - add `.yamllint` config

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: I think there isn't?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D211
2024-06-08 16:31:19 +09:00
7b5aed5b48
meta: Add arclint and supporting files
Summary:
Mostly lint and CIs

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Is there one?

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D78
2024-05-12 18:58:04 +09:00