diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 08ac411..af91d13 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -14,3 +14,7 @@ command = "ruff-lsp" [[language]] name = "markdown" soft-wrap.enable = true + +[[language]] +name = "javascript" +auto-format = true diff --git a/.config/ruff/pyproject.toml b/.config/ruff/pyproject.toml index 827b54b..297c888 100644 --- a/.config/ruff/pyproject.toml +++ b/.config/ruff/pyproject.toml @@ -9,7 +9,7 @@ preview = true # Dismissed selections: # - CPY: Copyright notice screamer; I don't care # - TD: Overly opinionated on FIXME/TODO format. FIX covers better -select = [ +lint.select = [ "ANN", # enforce type annotations "A", # prevent using keywords that clobber python builtins "ARG", # argument usage checking @@ -40,7 +40,7 @@ select = [ "W", # pycodestyle warnings ] -ignore = [ +lint.ignore = [ "ANN101", # No type hint for "self" - not necessary and makes noisy code "D203", # Blank line required before class docstring - conflicts with ruff's own formatter "D211", # No line before class, incompatible with D203 - one line before class