File tree Expand file tree Collapse file tree 2 files changed +7
-26
lines changed
Expand file tree Collapse file tree 2 files changed +7
-26
lines changed Original file line number Diff line number Diff line change @@ -5,23 +5,15 @@ charset = utf-8
55end_of_line = lf
66insert_final_newline = true
77trim_trailing_whitespace = true
8-
9- [* .{js,jsx,ts,tsx} ]
10- indent_style = space
11- indent_size = 4
12-
13- [* .{json} ]
148indent_style = space
159indent_size = 4
10+ max_line_length = 120
1611
1712[* .{yml,yaml} ]
1813indent_style = space
1914indent_size = 2
2015
21- [* .md ]
22- indent_style = space
23- indent_size = 4
24-
25- [Makefile ]
16+ [{Makefile,* .go,go.* } ]
2617indent_style = tab
18+ indent_size = 4
2719
Original file line number Diff line number Diff line change @@ -46,23 +46,12 @@ To use it in a project:
4646 }
4747 ```
4848
49- Projects are free to override options locally (for example ` tabWidth ` or
49+ Projects may override options locally (for example ` tabWidth ` or
5050` printWidth ` ) if they have strong legacy constraints, but this configuration
5151is intended to be the ** default Scality baseline** for new or reformatted
52- Node.js codebases. YAML defaults to 2-space indentation, JSON and Markdown to
53- 4-space indentation, and Markdown prose is left un-reflowed by default
54- (` proseWrap: 'preserve' ` ) to avoid noisy diffs in existing documentation.
55-
56- ## Editor configuration
57-
58- For a consistent editor experience, you can copy or adapt the ` .editorconfig `
59- from this repository. It aligns with the ESLint and Prettier baselines:
60-
61- - ** JS/TS** : spaces with 4-space indentation.
62- - ** JSON/Markdown** : spaces with 4-space indentation.
63- - ** YAML** : spaces with 2-space indentation.
64- - ` end_of_line = lf ` , ` insert_final_newline = true ` ,
65- ` trim_trailing_whitespace = true ` .
52+ Node.js codebases. YAML/JSON/Markdown files default to a 2-space indentation
53+ and Markdown prose is left un-reflowed by default (` proseWrap: 'preserve' ` ),
54+ to avoid noisy diffs in existing documentation.
6655
6756## Contributing
6857
You can’t perform that action at this time.
0 commit comments