Skip to content
Snippets Groups Projects
  1. Jan 06, 2024
  2. Dec 22, 2023
  3. Dec 18, 2023
  4. Dec 09, 2023
  5. Dec 05, 2023
  6. Nov 22, 2023
  7. Nov 21, 2023
  8. Nov 11, 2023
  9. Sep 16, 2023
  10. Sep 13, 2023
  11. Sep 11, 2023
  12. Sep 09, 2023
  13. Sep 05, 2023
  14. Aug 19, 2023
  15. Aug 16, 2023
  16. Aug 13, 2023
  17. Aug 09, 2023
  18. Aug 07, 2023
  19. Jul 18, 2023
  20. Jul 17, 2023
  21. Jun 30, 2023
  22. Jun 28, 2023
  23. Jun 27, 2023
  24. Jun 26, 2023
  25. Jun 24, 2023
  26. Jun 09, 2023
  27. May 29, 2023
    • Jed Fox's avatar
      More import-related ESLint rules (#1070) · e660e1e7
      Jed Fox authored
      - Enforce that imports from the same package are merged into a single
      import
      - In `loot-core`, require that imports of other `loot-core` files use a
      relative import (like the vast majority of such imports) rather than
      specifiers starting with `loot-core/` (probably a result of moving files
      out of other packages into `loot-core`)
      Unverified
      e660e1e7
  28. May 28, 2023
  29. May 09, 2023
    • Alberto Gasparin's avatar
    • Jed Fox's avatar
      Enable 'curly' rule (#1015) · 54fa4bcc
      Jed Fox authored
      Multi-line `if`/`for` statements in JS can be confusing since there
      aren’t braces to indicate which code is enclosed in the statement. I set
      the configuration to `multi-line` to enforce usage of braces for
      multi-line statement bodies, but still allow things like `if (foo)
      return;`. I additionally added the `consistent` option to require braces
      for all elements of an if/else chain if one element has it. As you can
      see, this set of options pretty closely matches the existing code style.
      
      I was going to comment in #1008 about this stylistic change but realized
      that it’s (IMO) a little impolite to ask for code style changes unless
      they can be automatically enforced.
      
      Note that `if (foo) { \n return; \n }` is still valid and won’t be
      collapsed. I tried to automatically collapse all such cases but it was a
      lot of files and I didn’t want to pick out the useful from the useless
      differences.
      Unverified
      54fa4bcc
  30. Apr 30, 2023
Loading