mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-27 23:06:54 +05:00
Add EditorConfig for consistent editor settings, Prettier for formatting (4-space indentation), ESLint with TypeScript rules, and linting documentation
38 lines
652 B
INI
38 lines
652 B
INI
# EditorConfig is awesome: https://EditorConfig.org
|
|
|
|
# top-most EditorConfig file
|
|
root = true
|
|
|
|
# Unix-style newlines with a newline ending every file
|
|
[*]
|
|
charset = utf-8
|
|
end_of_line = lf
|
|
insert_final_newline = true
|
|
trim_trailing_whitespace = true
|
|
|
|
# TypeScript, JavaScript files
|
|
[*.{ts,tsx,js,jsx,mjs,cjs}]
|
|
indent_style = space
|
|
indent_size = 4
|
|
max_line_length = 160
|
|
|
|
# JSON, YAML files
|
|
[*.{json,yaml,yml}]
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
# Markdown files
|
|
[*.md]
|
|
trim_trailing_whitespace = false
|
|
max_line_length = off
|
|
|
|
# Package.json
|
|
[package.json]
|
|
indent_style = space
|
|
indent_size = 4
|
|
|
|
# Shell scripts
|
|
[*.sh]
|
|
indent_style = space
|
|
indent_size = 4
|