Commit Graph

37 Commits

Author SHA1 Message Date
Benjamin Stigsen
e3974eae69
docs(fmt): fix %f width typo in printf docs (#6139) 2024-10-24 13:58:50 +09:00
Kenta Moriuchi
4d4bd0eb92
refactor(archive,async,cli,csv,dotenv,encoding,expect,fmt,front-matter,fs,http,internal,log,net,path,semver,testing,text,webgpu,yaml): enable "exactOptionalPropertyTypes" option (#5892) 2024-09-04 14:15:01 +09:00
Ian Bull
3b3a7617ab
refactor(assert,datetime,fmt,io,streams): consistently throw new Error() instead of throw Error() (#5855)
refactor(assert, datetime, fmt, io, streams): use `throw new Error` instead of `throw`

To ensure consistency across the codebase, this commit refactors the
codebase to use `throw new Error` instead of `throw` for throwing
errors.

https://github.com/denoland/std/issues/5854
2024-08-29 08:55:24 +10:00
Ian Bull
70011e9155
refactor(archive,cache,datetime,fmt,front-matter): align error messages to the style guide (#5706)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-08-21 14:42:02 +09:00
Yoshiya Hinosawa
442a497c03
fix(fmt): fix the case when mantissa exceeds 10 by rounding and exponent is negative (#5279) 2024-07-04 14:29:31 +09:00
Asher Gomez
d102a10235
refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from @std/assert (#5199)
* refactor: import from `@std/assert`

* update
2024-06-30 08:30:10 +00:00
Asher Gomez
31b906db99
chore: ensure code examples use assertions in Doc Linter (#4911) 2024-06-03 14:10:27 +10:00
Asher Gomez
79d6a70729
docs(assert,cli,data-structures,expect,fmt,front-matter,html,http,jsonc,semver,streams,text,toml,webgpu): add snippet checks in module, function and class docs to doc checker (#4855)
* chore: add snippet checks to module docs

* fix

* work

* tweak
2024-05-31 12:01:46 +10:00
Yoshiya Hinosawa
1eaee146c3
docs(fmt): improve API docs (#4829)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2024-05-28 15:14:34 +09:00
cinchen
e1561a9520
refactor(fmt): prepare for noUncheckedIndexedAccess (#4276)
* refactor: fmt-noUncheckedIndexedAccess

* fix: cr
2024-03-06 06:15:47 +11:00
Lino Le Van
c46143f0ac
chore: update copyright year (#4046)
* chore: update copyright year

* fix

---------

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-02 08:11:32 +11:00
realpha
4a6cddf863
refactor(fmt): replace enums with const objects (#3842) 2023-11-23 22:24:14 +09:00
Lino Le Van
717b7cc3cc
fix(fmt): make printf respect NO_COLOR (#3595) 2023-09-01 11:38:32 +09:00
Lino Le Van
2b5d71224f
refactor: cleanup usage of double equals (#3566)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-08-25 18:04:43 +09:00
Martin Fischer
a5b1d80736
chore: fix typos (#3458)
The typos were found with the typos[1] spell checker.  That spell
checker will be incorporated into the CI in a followup PR.

[1]: https://github.com/crate-ci/typos
2023-06-22 01:27:37 +09:00
James Bradlee
7afd7e270e
feat(fmt/printf): add formatter i/I (Deno.inspect) (#3100)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2023-01-17 18:42:53 +09:00
ayame113
b4239898d6
chore: update copyright header (#3082) 2023-01-03 19:47:44 +09:00
Lino Le Van
3001bfc431
refactor: remove unnecessary returns (#3046) 2022-12-24 20:13:11 +09:00
Asher Gomez
c78061eef3
refactor: replace String.prototype.substr() with String.prototype.slice() (#2993) 2022-12-12 15:21:59 +09:00
Leo Kettmeir
aba5017d43
docs: reorganize docs (#2658) 2022-11-25 12:40:23 +01:00
Asher Gomez
3b9fb39ddd
chore: remove void and Promise<void> return types (#2550) 2022-08-24 10:21:57 +09:00
Kitson Kelly
e83306672e
docs: improve module documentation (#2511) 2022-08-11 21:51:20 +10:00
Yoshiya Hinosawa
808fe203e0
chore: update copyright header (#1871) 2022-02-02 23:21:39 +09:00
vi117
93ee52d5a8
fix(fmt/printf): print with rounding taken into account (#1623) 2021-11-23 01:04:13 +09:00
Jonah Snider
1d9cd65f95
perf: use Array.from instead of new Array (#1551)
Co-authored-by: Leon Strauss <me@lionc.de>
2021-11-11 10:21:06 +01:00
Yusuke Tanaka
b134d54319
refactor: fix codes to pass no-unused-vars lint (#764) 2021-03-02 15:31:37 +09:00
Bartek Iwańczuk
84ee144ba8 chore: Enforce ban-untagged-todo lint rule (denoland/deno#9135) 2021-02-01 10:46:59 +00:00
Ryan Dahl
48a2496dbe update copyright to 2021 (denoland/deno#9081) 2021-02-01 10:46:59 +00:00
Mo
2540f096ec docs(fmt): add JSDoc (denoland/deno#8278) 2021-02-01 10:46:58 +00:00
Fukuda Naoto
1070e666e3 docs: add some missing JSDoc (denoland/deno#7765)
Refs denoland/deno#7487
2021-02-01 10:46:58 +00:00
Bartek Iwańczuk
57d903a06b build: migrate to dlint (denoland/deno#8176)
This commit migrates repository from using "eslint" 
to "dlint" for linting JavaScript code.
2021-02-01 10:46:58 +00:00
Bartek Iwańczuk
ca6738ecdc upgrade: swc, deno_doc, deno_lint, dprint (denoland/deno#7793) 2021-02-01 10:46:58 +00:00
Yusuke Tanaka
7e485a1831 chore: remove unreachable code to pass linter (denoland/deno#7270) 2021-02-01 10:46:58 +00:00
Kitson Kelly
d47cdf14aa feat: update to TypeScript 4.0 (denoland/deno#6514) 2021-02-01 10:46:58 +00:00
David Sherret
1425960509 Use dprint for internal formatting (denoland/deno#6682) 2021-02-01 10:46:58 +00:00
Ryan Dahl
f8eb45e39d make std deno-lint clean (denoland/deno#6240)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-02-01 10:46:58 +00:00
Ryan Dahl
bfe995ec02 Move fmt/sprintf.ts to fmt/printf.ts (denoland/deno#4567) 2021-02-01 10:46:57 +00:00