filtered
c166a34fd8
Add ESLint rules to enforce existing lib style ( #621 )
...
Adds a few rules that enforce consistency across the repo.
Only change is one top-level const arrow function is now a function
definition.
2025-02-26 18:12:26 +00:00
filtered
0e9b8b03b7
Enforce curly braces in multi-line if statements ( #619 )
...
Removes formatters' ability to print code that goes to a new line, but
uses no braces to delineate.
It becomes more difficult to follow when using JS-style indents (two
spaces).
No effort required - braces added by auto-fixer.
2025-02-26 15:08:23 +00:00
filtered
6224d2dc06
[Cleanup] Update ESLint rules with stricter auto-fixes ( #614 )
...
Stylistic plugin falls short in a few areas when it comes to consistent
lists and chaining. Replaced some key rules with antfu's personal
variants.
`eslint` can now be run repo-wide without params.
2025-02-26 11:12:03 +00:00
filtered
867b9ed316
[nit] Add consistent method chaining linter ( #613 )
...
Enforces that chained accessed should **either** all be on one line, or
all on individual lines (same as imports).
2025-02-26 10:11:11 +00:00
filtered
5cdd0581fa
Add import / export sort rules ( #612 )
...
- Adds ESLint package
- Applies import/export rules to all files
- Uses newline delineated grouping, with type-only imports first
2025-02-26 09:21:33 +00:00
filtered
9ded97d189
[Doc] Add JSDoc linter & general comment clean up ( #611 )
...
- Prefer comments above lines over end-of-line comments
- Makes auto-formatting easier
- Subjective, but it is generally easier to read in JS
- Standardises JSdoc format
- Auto-fixes for many issues (applies on save w/ESLint extension)
2025-02-26 08:54:18 +00:00
filtered
46535409c8
[CI] Fix existing lint warnings & disallow in future ( #567 )
...
* Fix lint warnings
* [CI] Fail lint checks instead of warning
* [CI] Fail stylistic lint checks instead of warning
2025-02-23 20:12:04 +00:00
filtered
b67f34e7f3
[Cleanup] Remove lint bypass, remove unused vars ( #554 )
2025-02-20 11:17:35 +11:00
Chenlei Hu
de74d8a08c
[Lint] Lint unused imports ( #493 )
2025-02-08 21:20:39 -05:00
filtered
f79133659f
Clean up JSDoc ( #327 )
...
* Convert comments to JSDoc
* Clean JSdoc
* nit
* Clean up all JSDoc & ESLint warnings
Disables max-len for now
Removes redundant JSDoc tags (empty, same name, wrong name, etc)
2024-11-21 10:11:53 -05:00
filtered
5469bfdd52
Add ESLint, pre-commit hook & format all files ( #319 )
...
* Add ESLint config
* Add ESLint packages
* Add prettier config
* Fix ESLint package version
* Format all files
* Format static assets
* Format project root config
* Add pre-commit code formatting
Formats .css & .js files automatically. If any .ts or .mts files are staged, the entire project is type-checked.
Packages:
- lint-staged
- husky
- prettier
2024-11-20 21:50:58 -05:00