16 Commits

Author SHA1 Message Date
Anders Kaseorg
0fc5f6994f check-openapi: Convert to TypeScript.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2025-09-04 17:02:06 -07:00
Anders Kaseorg
9506950f09 lint: Further recognize more JavaScript file extensions.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-11-10 17:52:49 -08:00
Anders Kaseorg
12699cdb1d editorconfig: Use [[shell]] section for shfmt options.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2024-02-22 16:36:16 -05:00
Anders Kaseorg
676fc93e1f editorconfig: Restore indent_size = 2 for Markdown.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-08-20 23:14:37 -07:00
Anders Kaseorg
6099612a15 lint: Add shfmt as a linter.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-10-15 15:16:00 -07:00
Anders Kaseorg
a3d26d701e styles: Rename .scss files back to .css.
css-loader@4 broke @import statements referencing files with
extensions other than .css, unless those @import statements are
compiled away by another loader.  Upstream is more interested in
arguing that such @import statements are semantically incorrect than
applying the one line fix.

https://github.com/webpack-contrib/css-loader/issues/1164

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-09-15 16:33:28 -07:00
Anders Kaseorg
2e029eb58b lint: Use Prettier for JSON files.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-07-24 09:42:56 -07:00
Anders Kaseorg
ba6ed1e177 .editorconfig: Add .scss, .hbs; drop weirder rules.
For example, nobody uses 4 space indents for .yml.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-22 15:03:08 -07:00
Anders Kaseorg
cadfda38f3 editorconfig: Set JS max_line_length = 100, to match eslintrc.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-10-14 17:32:38 -07:00
Anders Kaseorg
0a08fdd072 .editorconfig: Fix invalid brace patterns.
editorconfig does not support brace patterns with only one
alternative.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2019-07-03 14:40:56 -07:00
Marco Burstein
ae5496020b docs: Add ".ts" support in docs and configuration.
Add references to TypeScript in documentation where appropriate, such
as in example bash commands and discussions of the file structure.
Add a new section to the Reading List with TypeScript resources.
Also update `.editorconfig` to support ".ts" files.

Fix part of #12000.
2019-04-12 11:26:17 -07:00
Yago González
c7a97e34fb editorconfig: Declare max line lengths for JS/Python code.
110 is what we enforce in Python code via our existing lint rules, and
120 is what we'd most realistically move the JS codebase to next.

Make supported IDEs and text editors keep a maximum line length of 110
characters for most code files.
2018-08-08 09:48:17 -07:00
neiljp (Neil Pilgrim)
2fc0272a5d Editing (minor): Add .pyi to .editorconfig. 2017-12-18 07:35:58 -05:00
Diego Berrocal
b059f4202c Remove spaces between file types in editorconfig list.
This makes some editorconfig plugins not work. (At least the Emacs one
wasn't working).
2017-04-17 10:04:17 -07:00
Tommy Ip
b0b0c885a6 Update .editorconfig to use 4 spaces for handlebars/html. 2017-01-06 09:31:01 -08:00
Bojidar Marinov
ffabf5fc49 Add .editorconfig for most file extensions with more than one use.
I didn't add anything about the following extensions since they had
way too many different styles:

- .txt
- .conf
- .erb (saw tab, 2-spaced, 4-spaced and 8-spaced files around the codebase)

Fixes #3099.
2017-01-04 15:15:31 -08:00