Skip to content

Other Configs


Terminal window
cat > .editorconfig <<EOF
# EditorConfig is awesome: https://EditorConfig.org
# Top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8
insert_final_newline = false
[*.{json,jsonc,yaml,yml,toml,md,mdx}]
indent_size = 4
indent_style = tab
insert_final_newline = false
[*.{html,hbs,handlebars,erb,js,css,scss,sass,less}]
indent_size = 4
insert_final_newline = false
EOF

Terminal window
cat > .gitattributes <<EOF
# Auto detect text files and perform LF normalization
* text=auto
EOF

Terminal window
cat > .htmlvalidate.json <<EOF
{
"elements": ["html5"],
"extends": ["html-validate:prettier"]
}
EOF

Terminal window
cat > .jsbeautifyrc <<EOF
{
"editorconfig": true,
"end_with_newline": true,
"eol": "\n",
"extra_liners": ["head", "body", "html", "/html"],
"html": {
"css": {
"newline_between_rules": true
},
"js": {
"max_preserve_newlines": 2,
"preserve_newlines": true
}
},
"indent_handlebars": true,
"indent_inner_html": true,
"indent_with_tabs": false,
"max_preserve_newlines": 2,
"preserve_newlines": true,
"space_after_anon_function": true,
"space_in_paren": false,
"tab_size": 2,
"unformatted": ["pre", "code", "textarea", "script"],
"wrap_attributes": "force-aligned",
"wrap_line_length": 180
}
EOF

Terminal window
cat > postcss.config.mjs <<EOF
export default {
plugins: {
'@tailwindcss/postcss': {},
},
};
EOF

cat > .gitignore <<EOF
# build output
*.js.map
*.zip
.astro
.bundle
.output/
.venv
assets/js/bundle.js
dev-dist/
dist
dist/
vendor/bundle
package-lock.json
# generated types
.astro/
# dependencies
node_modules
node_modules/
megalinter-reports/
# Stencil
.stencil
assets/dist
config.stencil.json
secrets.stencil.json
secrets.stencil.json
stencil-steps.txt
stencil-steps.yml
# Validators
newreport.html
report.html
validation-report.txt
# Nerden's Misc.
*.cache
.idea/
assets/css-artifacts
gemini-questions.txt
icon.d.ts
z-notes.txt
# logs
*.log
lerna-debug.log*
logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
*.local
.env
.env.local
.env.production
dist
dist-ssr
# macOS-specific files
.DS_Store
hint-report
# misc.
.dev*
# Editor directories and files
!.vscode/extensions.json
*.njsproj
*.ntvs*
*.sln
*.suo
*.sw?
.DS_Store
.idea
.vscode/*
temp.scss
temp.js
EOF

Terminal window
cat > .markdownlint.json <<EOF
{
"default": true,
"MD001": true,
"MD003": {
"style": "atx"
},
"MD004": {
"style": "dash"
},
"MD007": {
"indent": 2
},
"MD012": false,
"MD013": false,
"MD024": {
"siblings_only": true
},
"MD025": true,
"MD026": false,
"MD029": {
"style": "ordered"
},
"MD033": false,
"MD034": false,
"MD036": false,
"MD040": true,
"MD041": false,
"MD046": {
"style": "fenced"
},
"MD048": {
"style": "backtick"
}
}
EOF

Terminal window
cat > tsconfig.json <<EOF
{
"extends": "astro/tsconfigs/strict",
"types": ["astro/client"],
"compilerOptions": {
"allowJs": true, // required, and included with all Astro
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
"@components/*": ["src/components/*"],
"@content/*": ["src/content/*"],
"@data/*": ["src/data_files/*"],
"@images/*": ["src/images/*"],
"@scripts/*": ["src/assets/scripts/*"],
"@styles/*": ["src/assets/styles/*"],
"@utils/*": ["src/utils/*"]
}
},
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}
EOF

Terminal window
cat > .djlintrc <<EOF
{
"close_void_tags": true,
"css": {
"indent_size": 4
},
"extensions": ["html", "hbs"],
"format_attribute_template_tags": false,
"format_css": false,
"format_js": false,
"ignore": ["H021", "H030", "H031", "H025"],
"ignore_case": true,
"include": ["H008", "H012", "H014", "H009"],
"indent": 4,
"indent_size": 4,
"indentation": 4,
"js": {
"indent_size": 4
},
"max_blank_lines": 0,
"max_line_length": 120,
"no_function_formatting": true,
"no_line_after_yaml": true,
"no_multiple_blank_lines": false,
"no_set_formatting": true,
"preserve_blank_lines": false,
"preserve_leading_space": true,
"profile": "handlebars",
"use_gitignore": true
}
EOF

Terminal window
cat > .browserslistrc <<EOF
> 1%, last 2 versions, Firefox ESR, not dead, not IE 11, not op_mini all
EOF

Terminal window
cat > pyproject.toml <<EOF
[tool.djlint]
profile = "handlebars"
extension = ".html"
close_void_tags = true
custom_blocks = ">,[#section],[#partial],[#each],[#if],[#unless],[#with]"
format_attribute_template_tags = false
format_css = false
format_js = false
ignore = "H005,H007,H015,H016,H019,H020,H021,H023,H030,H031,T001"
include = "H017,H035"
ignore_case = false
indent = 4
max_attribute_length = 20
max_blank_lines = 2
max_line_length = 3000
no_line_after_yaml = false
linter_output_format = "{filename}:{line}: {code} {message} {match}"
preserve_blank_lines = true
use_gitignore = true
no_spaces_in_handlebars_expressions = true
exclude = "base.html,_Other"
[tool.djlint.css]
indent_size = 4
[tool.djlint.js]
indent_size = 4
EOF