Other Configs
Setting Up Other Configs.
Section titled “Setting Up Other Configs.”.editorconfig
Section titled “.editorconfig”cat > .editorconfig <<EOF# EditorConfig is awesome: https://EditorConfig.org
# Top-most EditorConfig fileroot = true
[*]indent_style = spaceindent_size = 4trim_trailing_whitespace = trueend_of_line = lfcharset = utf-8insert_final_newline = false
[*.{json,jsonc,yaml,yml,toml,md,mdx}]indent_size = 4indent_style = tabinsert_final_newline = false
[*.{html,hbs,handlebars,erb,js,css,scss,sass,less}]indent_size = 4insert_final_newline = falseEOF
.gitattributes
Section titled “.gitattributes”cat > .gitattributes <<EOF# Auto detect text files and perform LF normalization* text=autoEOF
.htmlvalidate.json
Section titled “.htmlvalidate.json”cat > .htmlvalidate.json <<EOF{ "elements": ["html5"], "extends": ["html-validate:prettier"]}EOF
.jsbeautifyrc
Section titled “.jsbeautifyrc”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
postcss.config.mjs
Section titled “postcss.config.mjs”cat > postcss.config.mjs <<EOFexport default { plugins: { '@tailwindcss/postcss': {}, },};EOF
.gitignore
Section titled “.gitignore”cat > .gitignore <<EOF# build output*.js.map*.zip.astro.bundle.output/.venvassets/js/bundle.jsdev-dist/distdist/vendor/bundlepackage-lock.json
# generated types.astro/
# dependenciesnode_modulesnode_modules/megalinter-reports/
# Stencil.stencilassets/distconfig.stencil.jsonsecrets.stencil.jsonsecrets.stencil.jsonstencil-steps.txtstencil-steps.yml
# Validatorsnewreport.htmlreport.htmlvalidation-report.txt
# Nerden's Misc.*.cache.idea/assets/css-artifactsgemini-questions.txticon.d.tsz-notes.txt
# logs*.loglerna-debug.log*logsnpm-debug.log*yarn-debug.log*yarn-error.log*pnpm-debug.log*
# environment variables*.local.env.env.local.env.productiondistdist-ssr
# macOS-specific files.DS_Storehint-report
# misc..dev*
# Editor directories and files!.vscode/extensions.json*.njsproj*.ntvs**.sln*.suo*.sw?.DS_Store.idea.vscode/*temp.scsstemp.jsEOF
.markdownlint.json
Section titled “.markdownlint.json”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
tsconfig.json
Section titled “tsconfig.json”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
.djlintrc
Section titled “.djlintrc”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
.browserslistrc
Section titled “.browserslistrc”cat > .browserslistrc <<EOF> 1%, last 2 versions, Firefox ESR, not dead, not IE 11, not op_mini allEOF
pyproject.toml
Section titled “pyproject.toml”cat > pyproject.toml <<EOF[tool.djlint]profile = "handlebars"extension = ".html"close_void_tags = truecustom_blocks = ">,[#section],[#partial],[#each],[#if],[#unless],[#with]"format_attribute_template_tags = falseformat_css = falseformat_js = falseignore = "H005,H007,H015,H016,H019,H020,H021,H023,H030,H031,T001"include = "H017,H035"ignore_case = falseindent = 4max_attribute_length = 20max_blank_lines = 2max_line_length = 3000no_line_after_yaml = falselinter_output_format = "{filename}:{line}: {code} {message} {match}"preserve_blank_lines = trueuse_gitignore = trueno_spaces_in_handlebars_expressions = trueexclude = "base.html,_Other"
[tool.djlint.css]indent_size = 4
[tool.djlint.js]indent_size = 4EOF