LitoMore
e44fbde35e
Add type declarations for data JSON entry ( #13510 )
2025-07-02 08:50:03 +01:00
Álvaro Mondéjar Rubio
55d055c380
Enforce consistency of titles and slugs ( #13533 )
2025-06-25 22:55:30 +08:00
Álvaro Mondéjar Rubio
1c151e66b2
Add linting for aliases ( #13348 )
2025-05-30 13:11:10 +08:00
Álvaro Mondéjar Rubio
2b36eb59a9
Migrate from ts-ignore to ts-expect-error ( #13059 )
2025-04-14 17:54:22 +02:00
Álvaro Mondéjar Rubio
18a5c39e21
Check JSDoc types with TypeScript ( #12840 )
2025-03-04 03:12:53 +01:00
LitoMore
9e9638f8dc
Sort icon data object keys ( #12795 )
2025-02-22 18:22:52 +01:00
LitoMore
52637c40f8
Fix URL checker in ourlint ( #12740 )
2025-02-12 21:01:18 +01:00
LitoMore
7efabf4af0
Fix user attachment URL condition in ourlint
2025-01-20 19:08:51 +08:00
LitoMore
40550ae0a2
Fix typo in ourlint
2025-01-20 18:57:39 +08:00
LitoMore
d19f9c52ca
Allow GitHub user attachment for ourlint ( #12599 )
2025-01-20 08:49:18 +01:00
LitoMore
bb49aada73
Use getIconSlug() to keep consistent ( #12500 )
2025-01-06 05:08:28 +01:00
Álvaro Mondéjar Rubio
8ade661642
Drop icons property from icons data file ( #12415 )
2024-12-21 23:43:30 +01:00
LitoMore
4a2dc79842
Use tab indentations ( #12380 )
2024-12-21 22:49:25 +08:00
LitoMore
7409de9458
Add script for formatting icon data ( #12381 )
2024-12-19 11:32:41 +01:00
LitoMore
8c34c4967b
Show expected order hint on icons order lint ( #12336 )
2024-12-13 17:14:20 +01:00
LitoMore
d65594c38d
Bump xo to 0.60.0 ( #12303 )
2024-12-11 22:31:26 +08:00
Álvaro Mondéjar Rubio
6a1ab6cc86
Ensure that icons data object fields are sorted ( #12243 )
2024-11-28 23:13:48 +01:00
LitoMore
afd6568725
Fix SPDX license usages in add-icon-data script
2024-10-17 00:11:55 +08:00
LitoMore
15a821e895
Add SPDX license check to ourlint ( #11879 )
2024-10-01 04:34:00 +08:00
Álvaro Mondéjar Rubio
5183e3c06b
Stricter rules for JSDoc documentation blocks ( #11881 )
2024-09-29 22:28:34 +08:00
Álvaro Mondéjar Rubio
d7938b6416
Move GitHub URLs linting from JSONSchema to our lint ( #11877 )
2024-09-27 18:25:37 +02:00
LitoMore
ef1d49b94e
Avoid raw asset URLs ( #11785 )
2024-09-17 22:17:47 +02:00
LitoMore
099de86f12
Suppress warnings on TODO comments ( #11779 )
2024-09-17 00:11:21 +02:00
Álvaro Mondéjar Rubio
512e4cbf4a
Resolve all possible TODO comments ( #11119 )
2024-06-07 03:24:29 +08:00
Álvaro Mondéjar Rubio
236f5fc715
Add types to source code ( #10637 )
2024-06-06 14:40:35 +02:00
LitoMore
da97f3263f
Fix scripts execution compatibility ( #10838 )
2024-04-21 14:16:09 +02:00
LitoMore
bf69b6dee0
Add XO linter ( #10643 )
2024-03-24 18:38:18 +01:00
Álvaro Mondéjar
17ea889273
Refactor tests and scripts ( #9237 )
...
Co-authored-by: LitoMore <LitoMore@users.noreply.github.com >
2023-08-08 06:38:52 +02:00
LitoMore
b3906b828e
Remove unused shebang line ( #9126 )
2023-07-28 16:19:49 +02:00
LitoMore
7330e01f85
Add lint for checking redundant slashes ( #8692 )
...
* Add lint for checking redundant slashes
* Update function names
* Better condition
* Fix typo
2023-05-29 03:34:33 +02:00
Álvaro Mondéjar
6178243859
Expose SDK in NPM package ( #8077 )
2023-04-19 15:23:13 +02:00
LitoMore
5958fc117b
Add add-icon-data script ( #7849 )
...
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com >
2022-09-25 09:04:58 +08:00
Álvaro Mondéjar
ad7de0434e
Standarize locale comparisons and sort icons by title in package ( #7854 )
...
* Use Intl.Collator for locale comparisons
* Sort icons by title in package
2022-09-24 17:29:43 +02:00
Álvaro Mondéjar
44064880b4
Normalize newline characters reading README in scripts ( #7292 )
2022-03-31 05:30:30 -07:00
Sachin Raja
a930dc57ec
convert scripts to esm ( #6946 )
...
* convert scripts to esm
* fix tests
* fix tests
* fix lints
* syncFs to fsSync
* named export for fs
Co-authored-by: LitoMore <LitoMore@users.noreply.github.com >
* fsSync to { promises as fs }
* convert update-svgs-count to esm
* rename data to icons
* fix build script
* switch svglintrc file to mjs
* use node: protocol
* pluralize getIcons
Co-authored-by: LitoMore <LitoMore@users.noreply.github.com >
2021-12-25 06:22:56 -08:00
Sachin Raja
a14e03cf7a
Switch testing framework from jest to uvu ( #6915 )
...
* switch from jest to uvu
* remove jest config
* convert index.test.js to uvu
* use assert.type
* Get rid of jest-diff
* Remove uneeded splits
* remove out.txt
* switch to fake-diff
2021-11-29 09:44:36 +01:00
Eric Cornelissen
e0df400494
Setup prettier ( #6758 )
...
* Add prettier as a dependency
* Add format command and configure prettier
I opted for single quotes to be in line with other simple-icons projects
I ignore the data file because changing its formatting is quite a bit of
trouble for all open PRs.
* Run prettier
* Replace all functions by arrow functions
* Move prettier configuration to config file
Move it to a file so editors (and other software) can pick up on the
configuration. I went with .js because (a) it allows for comments and
(2) it seems most of the config files are in JavaScript already.
* Add prettier --check when running npm run lint (This adds it to the CI as well)
* Add husky and format changes before committing
* Use object destructuring for imports consistently
* Add shebang and fileoverview to jsonlint.js
2021-10-25 21:13:10 +02:00
Eric Cornelissen
153a029c25
Restructure the scripts/ directory ( #5546 )
...
* Restructure scripts/ directory
And update references to this scripts everywhere.
* Update names of file-level constants in bump-version.js
* Normalize quotes between all scripts
* Move "create-release.yml" scripts to scripts/release
* Move slugs table script to scripts/release
* Update relative path logic in update-slugs-table.js
2021-05-07 19:55:06 +02:00