Skip to content

Commit 679cdc0

Browse files
Add basic configs
1 parent e389da8 commit 679cdc0

14 files changed

+207
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "Setup IX-Ray Compressor",
3+
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm",
4+
"postCreateCommand": "npm install",
5+
"features": {
6+
"ghcr.io/devcontainers/features/github-cli:1": {},
7+
"ghcr.io/devcontainers-contrib/features/prettier:1": {}
8+
},
9+
"customizations": {
10+
"codespaces": {
11+
"openFiles": [
12+
"README.md"
13+
]
14+
},
15+
"vscode": {
16+
"extensions": [
17+
"EditorConfig.EditorConfig",
18+
"DavidAnson.vscode-markdownlint",
19+
"redhat.vscode-yaml",
20+
"dbaeumer.vscode-eslint",
21+
"esbenp.prettier-vscode"
22+
],
23+
"settings": {
24+
"editor.defaultFormatter": "esbenp.prettier-vscode",
25+
"redhat.telemetry.enabled": false
26+
}
27+
}
28+
}
29+
}

.editorconfig

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Enable top-most EditorConfig file
2+
root = true
3+
4+
# Markdown documents
5+
[*.md]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
insert_final_newline = true
11+
12+
# JSON-based files
13+
[*.{json,code-workspace,!package*.json}]
14+
charset = utf-8
15+
end_of_line = lf
16+
indent_size = 4
17+
indent_style = space
18+
insert_final_newline = true
19+
20+
# YAML-based files
21+
[*.{yml,yaml}]
22+
charset = utf-8
23+
end_of_line = lf
24+
indent_size = 2
25+
indent_style = space
26+
insert_final_newline = true
27+
28+
# NPM manifests
29+
[package*.json]
30+
charset = utf-8
31+
end_of_line = lf
32+
indent_size = 2
33+
indent_style = space
34+
insert_final_newline = true
35+
36+
# JavaScript sources
37+
[{src/*.js,*.mjs}]
38+
charset = utf-8
39+
end_of_line = lf
40+
indent_size = 4
41+
indent_style = space
42+
insert_final_newline = true

.gitattributes

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Global attributes for forcing line endings normalization of specific files
2+
3+
* text=auto
4+
5+
# Generated files
6+
dist/** -diff linguist-generated=true
7+
8+
# Configs
9+
.gitattributes text eol=lf encoding=utf-8
10+
.gitignore text eol=lf encoding=utf-8
11+
*.json text eol=lf encoding=utf-8
12+
*.yml text eof=lf encoding=utf-8
13+
*.yaml text eof=lf encoding=utf-8
14+
15+
# Sources
16+
*.js text eol=lf encoding=utf-8
17+
18+
# Documents
19+
*.md text eol=crlf encoding=utf-8

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Default assignment
2+
* @acidicMercury8

.github/dependabot.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: github-actions
5+
directory: /
6+
schedule:
7+
interval: weekly
8+
target-branch: default
9+
groups:
10+
actions-minor:
11+
update-types:
12+
- minor
13+
- patch
14+
ignore:
15+
- dependency-name: 'ixray-team/setup-ixray-compressor*'
16+
17+
- package-ecosystem: npm
18+
directory: /
19+
schedule:
20+
interval: weekly
21+
target-branch: default
22+
groups:
23+
npm-development:
24+
dependency-type: development
25+
update-types:
26+
- minor
27+
- patch
28+
npm-production:
29+
dependency-type: production
30+
update-types:
31+
- patch

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Global ignoring of different binaries and another temporary files
2+
3+
# Dependencies
4+
node_modules/
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
11+
# macOS cache
12+
.DS_Store

.markdownlint-cli2.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignores:
2+
- ".github/**.md"

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.15.0

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Global ignoring of different binaries and another temporary files
2+
3+
# Generated files
4+
dist/
5+
6+
# Dependencies
7+
node_modules/

.prettierrc.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"tabWidth": 4,
3+
"useTabs": false,
4+
"printWidth": 100,
5+
"semi": true,
6+
"trailingComma": "none",
7+
"arrowParens": "always",
8+
"endOfLine": "lf",
9+
"overrides": [
10+
{
11+
"files": ["package*.json"],
12+
"options": {
13+
"tabWidth": 2
14+
}
15+
},
16+
{
17+
"files": ["*.yml", "*.yaml"],
18+
"options": {
19+
"tabWidth": 2,
20+
"singleQuote": true
21+
}
22+
},
23+
{
24+
"files": ["*.js"],
25+
"options": {
26+
"tabWidth": 4,
27+
"plugins": ["prettier-plugin-brace-style"],
28+
"braceStyle": "allman"
29+
}
30+
}
31+
]
32+
}

0 commit comments

Comments
 (0)