update this to remove bracket spacing EditorConfig helps developers define and maintain…
- User
update this to remove bracket spacing
EditorConfig helps developers define and maintain consistent
coding styles between different editors and IDEs
editorconfig.org
root = true
[*]
indent_style = space indent_size = 2
end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true
- Assistant
To remove bracket spacing, you can add a rule for spaces inside brackets. Unfortunately, EditorConfig doesn't have a direct way to control spacing inside brackets.
Bracket spacing is typically controlled by specific editor or linter settings, or via a code formatter like Prettier or ESLint.
If you're using Prettier, you can update your
.prettierrcor package.json like this:json{ "bracketSpacing": false }If you want to enforce no bracket spacing in your project, you'll need to configure your code formatter accordingly, since EditorConfig doesn't support that setting.
Let me know if you want help configuring Prettier or ESLint for this!