Skip to content

Commit d366dfe

Browse files
galin-sPetarKirov
authored andcommitted
feat(pre-commit): Edit ci.nix, .editorconfig and .gitignore; create .prettierrc, .prettierignore and statix.toml
1 parent 131ffd2 commit d366dfe

File tree

6 files changed

+38
-2
lines changed

6 files changed

+38
-2
lines changed

.editorconfig

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,24 @@ insert_final_newline = true
88
trim_trailing_whitespace = true
99
indent_style = space
1010
indent_size = 2
11-
max_line_length = 80
1211

1312
[*.{d,h,hpp,c,cpp,cxx,cs,hs,java,kt,py,rs,sol}]
1413
indent_size = 4
1514

16-
[{Makefile,go.mod,go.sum,*.go,.gitmodules}]
15+
[{Makefile,go.mod,go.sum,*.go,.gitmodules,dub.selections.json}]
1716
indent_style = tab
1817
indent_size = 4
18+
[*.md]
19+
indent_style = space
20+
# Prettier handles formatting for markdown files
21+
# and `indent_size` is not enforcable because ordered and unordered lists use
22+
# different indentation:
23+
indent_size = unset
24+
[**/Cargo.lock]
25+
indent_style = space
26+
indent_size = unset
27+
[*.wit]
28+
indent_style = space
29+
indent_size = 2
30+
[*.rs]
31+
indent_size = unset

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ matrix.json
2020
matrix-pre.json
2121
matrix-post.json
2222
comment.md
23+
24+
# Pre Commit
25+
.pre-commit-config.yaml

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.direnv
2+
node_modules
3+
.yarn
4+
.pnp.cjs
5+
.pnp.loader.mjs
6+
*.json
7+
flake.lock
8+
*.mdx

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"singleQuote": true,
5+
"semi": true,
6+
"arrowParens": "avoid",
7+
"trailingComma": "all"
8+
}

shells/ci.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ pkgs.mkShellNoCC {
33
packages = with pkgs; [
44
jq
55
nix-eval-jobs
6+
figlet
67
];
78

89
shellHook =

statix.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
disabled = [
2+
"empty_pattern"
3+
]

0 commit comments

Comments
 (0)