# This file is provided by the package "node-editorconfig": # https://github.com/webextensions/node-editorconfig # https://www.npmjs.com/package/node-editorconfig # # To generate this file: # $ npx node-editorconfig # # $ npx --min-release-age=0 node-editorconfig@latest # # To update this file: # $ npx node-editorconfig --overwrite # # $ npx --min-release-age=0 node-editorconfig@latest --overwrite # # References: # http://editorconfig.org/ (Official Site) # http://editorconfig.org/#download (Plugins) # http://davidensinger.com/2013/07/why-i-use-editorconfig/ (Reference) # https://github.com/eslint/eslint/blob/master/.editorconfig (Sample file) # # Further reading: # https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#ideas-for-domain-specific-properties # No .editorconfig files above the root directory root = true [*] charset = utf-8 end_of_line = lf indent_size = 4 indent_style = space insert_final_newline = true trim_trailing_whitespace = true [{*.yaml,*.yml}] indent_size = 2 [Makefile] indent_style = tab [{*.json,.node-version,.nvmrc,*.svg}] insert_final_newline = false [nodemon.json] insert_final_newline = true [.claude/{settings.json,settings.local.json}] indent_size = 2 # [{*.markdown,*.md,*.mdown,*.mkd,*.mkdn,*.text}] # https://superuser.com/questions/249436/file-extension-for-markdown-files/285878#285878 # [*.mdc] # https://cursor.com/docs/context/rules#rule-file-structure # https://stackoverflow.com/editing-help#linebreaks [{*.md,*.mdc}] trim_trailing_whitespace = false [{*.bat,*.cmd}] end_of_line = crlf ## Glob/minimatch pattern to match the "node_modules" directory only at the project root # [/node_modules/**] # ... # Glob/minimatch pattern to match the "node_modules" directory at any level [node_modules/**] charset = unset end_of_line = unset indent_size = unset indent_style = unset insert_final_newline = false trim_trailing_whitespace = false