Skip to content

Commit

Permalink
core: editor config and gitattributes configured
Browse files Browse the repository at this point in the history
  • Loading branch information
vgseven committed Oct 6, 2024
1 parent 3b35009 commit 84845c8
Show file tree
Hide file tree
Showing 6 changed files with 247 additions and 165 deletions.
41 changes: 41 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

# TypeScript and JavaScript files
[*.{ts,js}]
quote_type = single

# JSON files
[*.json]
insert_final_newline = false

# Markdown files
[*.md]
trim_trailing_whitespace = false

# YAML files
[*.{yml,yaml}]
indent_size = 2

# Shell scripts
[*.sh]
indent_size = 2

# Ignore built files and node_modules
[{dist,build,node_modules}/**]
indent_style = ignore
indent_size = ignore
end_of_line = ignore
trim_trailing_whitespace = ignore
charset = ignore
50 changes: 50 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Set default behavior to automatically normalize line endings
* text=auto eol=lf

# Source code
*.ts text eol=lf
*.js text eol=lf
*.json text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.md text eol=lf

# Config files
.env text eol=lf
.gitattributes text eol=lf
.gitignore text eol=lf
.editorconfig text eol=lf
*.config.js text eol=lf
*.config.ts text eol=lf
tsconfig.json text eol=lf
package.json text eol=lf
package-lock.json text eol=lf
yarn.lock text eol=lf

# Shell scripts
*.sh text eol=lf

# Documentation
*.txt text eol=lf
LICENSE text eol=lf
README text eol=lf

# Denote all files that are truly binary and should not be modified
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.zip binary
*.tar binary
*.gz binary
*.tgz binary
*.pdf binary

# Exclude compiled output and dependencies from GitHub language statistics
dist/* linguist-generated=true
build/* linguist-generated=true
node_modules/* linguist-vendored=true
8 changes: 4 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bun run typecheck
bun run lint
bun run format
bun run build
pnpm run typecheck
pnpm run lint
pnpm run format
pnpm run build
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
"dev:prepare": "git pull origin main && pnpm i"
},
"devDependencies": {
"@biomejs/biome": "^1.9.2",
"@biomejs/biome": "^1.9.3",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.8",
"@types/node": "^22.5.5",
"@changesets/cli": "^2.27.9",
"@types/node": "^22.7.4",
"husky": "^9.1.6",
"rimraf": "^6.0.1",
"tsup": "^8.3.0",
"typescript": "^5.6.2"
},
"packageManager": "pnpm@9.11.0"
"packageManager": "pnpm@9.12.0"
}
Loading

0 comments on commit 84845c8

Please sign in to comment.