Skip to content

Commit c8eb17b

Browse files
committed
feat(ci.yml): Edit .editorconfig and .gitignore, create .prettier files and statix.toml
1 parent 2703b2d commit c8eb17b

File tree

5 files changed

+37
-1
lines changed

5 files changed

+37
-1
lines changed

.editorconfig

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ max_line_length = 80
1313
[*.{d,h,hpp,c,cpp,cxx,cs,hs,java,kt,py,rs,sol}]
1414
indent_size = 4
1515

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

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)