Commit Graph

47 Commits

Author SHA1 Message Date
toasted-nutbread
441b6882ca
Lint updates (#2247)
* Fix spacing

* Update lint dependencies

* Disable false positive rule

* Update header rule

* Install eslint-plugin-jsonc

* Update lint rules to include jsonc extension
2022-10-15 13:09:02 -04:00
toasted-nutbread
31e20c889e
ESlint JSdoc (#2148)
* Install eslint-plugin-jsdoc

* Initial rules setup

* Update lists

* Use @returns rather than @return

* Remove error throwing code which is never executed

* Fix issues relating to @throws

* General error fixes

* Update Display type documentation

* Various doc fixes

* Fix invalid tuple syntax

* Doc updates

* Remove unused

* Doc updates

* Enable jsdoc/require-returns

* Update rules

* Update remaining rules
2022-05-20 10:28:38 -04:00
toasted-nutbread
96f5a06c80
Dependency update (#2141)
* Update dependencies

* Update JSZip to 3.9.1
2022-05-16 21:36:30 -04:00
toasted-nutbread
9941d583a0
Parse5 update (#2140)
* Update build-libs.js

* Add a test for build-libs.js

* Update parse5

* Rebuild parse5

* Update build-libs.js to generate consistent path names

* Rebuild
2022-05-16 21:25:05 -04:00
toasted-nutbread
5a723034b8
Dictionary validate updates (#2137)
* Reuse JsomSchema instance

* Install ajv

* Add support for using ajv as a JSON schema validator

* Update usage
2022-05-16 20:09:38 -04:00
toasted-nutbread
0629a2ddc8
Update node version and dependencies (#2100)
* Update packages

* Update node version used in CI

* Update node packages again using node v16

* Update stylelint-config-recommended
2022-04-02 09:41:25 -04:00
toasted-nutbread
3662c07c63
Update node dependencies (#2061)
* Run npm update

* Run npm audit fix

* Update eslint to 8.8.0

* Update eslint-plugin-no-unsanitized to 4.0.1

* Update html-validate to 6.2.0

* Update jsdom to 19.0.0

* Update stylelint to 14.3.0

* Update stylelint-config-recommended to 6.0.0

* Remove dead rule

* Fix rule affecting currentColor keyword
2022-02-02 20:34:21 -05:00
toasted-nutbread
14b2a9be87
npm update (#1957) 2021-09-26 11:08:32 -04:00
toasted-nutbread
29e78a72fa
Update development dependencies (#1885)
* Update dependencies

* Fix audit issues
2021-08-10 19:48:10 -04:00
toasted-nutbread
0c00c56e39
Add a script to patch bugs in dependencies (#1783) 2021-07-02 16:59:36 -04:00
toasted-nutbread
002da9fba8
Structured content style json (#1771)
* Install css

* Remove unnecessary rule

* Create CSS overrides file

* Create script to generate CSS JSON file

* Generate JSON

* Add test
2021-06-27 17:57:00 -04:00
toasted-nutbread
4d5e85ff09
Update dependencies (#1749)
* Update dependencies

* Remove unnecessary readonly attribute

* Run npm audit fix
2021-06-24 19:59:52 -04:00
toasted-nutbread
dbd4371795
Update packages (#1714) 2021-05-26 21:44:46 -04:00
toasted-nutbread
97ac9099e8
Update packages (#1534) 2021-03-15 23:17:50 -04:00
toasted-nutbread
782b945905
Header lint (#1444)
* Add eslint-plugin-header

* Add rule for header format

* Add missing header

* Fix header issues
2021-02-25 20:21:05 -05:00
toasted-nutbread
9e83faa02c
Html lint (#1336)
* Move style rules

* Fix non-unique IDs

* Remove erroneous ids

* Add title

* Fix invalid closing tag

* Install html-validate

* Add .htmlvalidate.json

* Update HTML and styles

* Add test-lint-html

* Update test files

* Update test-lint-html/css commands to have more explicit targets
2021-01-30 20:44:54 -05:00
toasted-nutbread
4430446731
Package update (#1308)
* Update eslint command to use npx

* Omit author field
2021-01-24 15:11:37 -05:00
toasted-nutbread
63971776a5
CSS lint (#1201)
* Use single quotes instead of double

* Install stylelint

* Set up config

* Update package/tests

* Fix lint issues

* Update CSS rules
2021-01-03 15:30:38 -05:00
toasted-nutbread
e54a2297e8
Build dry run test (#1129)
* Update testMain to support function args

* Add support for dry run and basic validation

* Don't log progress if not a TTY

* Ignore errors from fs.unlinkSync

* Add --dry-run-build-zip option to build zip in memory

* Add test-build
2020-12-18 20:51:22 -05:00
toasted-nutbread
fe16793779
Update package dependencies (#1100) 2020-12-12 13:06:15 -05:00
toasted-nutbread
2d765d2c4e
Dev dependency update (#895)
* Update dev dependencies

* Add parse5 dev dependency

* Add browserify dev dependency
2020-10-07 19:56:09 -04:00
toasted-nutbread
d27349207d
Add web-ext dev dependency (#861)
* Add web-ext dependency

* Specify extension directory

* Add command for testing web-ext lint
2020-09-26 13:44:47 -04:00
toasted-nutbread
d3ed8f43a1
Add lint test to validate <script>s in HTML files (#848) 2020-09-19 21:57:11 -04:00
toasted-nutbread
51d4e5b0ff
Dev/test script organization (#846)
* Move lint scripts

* Move dictionary-validate.js

* Move schema-validate.js

* Move createTestDictionaryArchive, remove yomichan-test.js

* Rename yomichan-util.js to util.js

* Move test/yomichan-vm.js to dev/vm.js

* Move getArgs into util.js (and fix name)

* Create test-all.js

* Update test-code script
2020-09-19 19:04:28 -04:00
toasted-nutbread
a96e1c20a7
Dynamic property (#749)
* Add DynamicProperty class

* Add tests for DynamicProperty
2020-08-22 17:50:56 -04:00
toasted-nutbread
d8649f40d5
JSON-schema-based profile conditions (#730)
* Add ProfileConditions class

* Add URL to VM

* Add new ProfileConditions tests
2020-08-15 17:22:23 -04:00
toasted-nutbread
6da02c6eee
document.js refactor (#719)
* Refactor document.js into a class

* Move public functions first

* Rename private functions

* Rename

* Rename argument

* Use instance of DocumentUtil

* Update tests

* Refactor

* Rename (test-)document.js to (test-)document-util.js
2020-08-09 13:27:21 -04:00
toasted-nutbread
d856e4caac
CacheMap (#715)
* Create CacheMap class

* Add test
2020-08-09 13:15:56 -04:00
toasted-nutbread
04d47bf8a9
Build system changes (#721)
* Refactor manifest.json

* Change end-of-line convention for built plain-text files

* Ignore builds directory

* Mark the "dev" directory as using the node environment

* Create build script

* Register build scripts

* Remove old build script

* Fix 64x64 icon

* Add test to ensure manifest data is updated properly
2020-08-09 13:09:06 -04:00
toasted-nutbread
d7aaab685e
Dev dependencies updates (#679)
* Update eslint to 7.5.0

* Update eslint-plugin-no-unsanitized to 3.1.2

* Update fake-indexeddb to 3.1.1

* Rename DictionaryImporter.import to .importDictionary

Conflicts with o-unsanitized/method
2020-07-19 22:05:37 -04:00
toasted-nutbread
f7df6254d6
Dom text scanner fixes (#505)
* Fix test case

* Add test-dom-text-scanner

* Ensure that DOMTextScanner._node never becomes null

* Add remainder
2020-05-06 19:33:17 -04:00
toasted-nutbread
02d815f3f4 Update jsdom to 16.2.2 2020-04-13 18:54:34 -04:00
toasted-nutbread
7225201fb6 Add tests 2020-03-28 18:25:56 -04:00
toasted-nutbread
a0c4ce779d
Merge pull request #413 from toasted-nutbread/japanese-utility
Convert Japanese utilities to a module-like style
2020-03-27 22:53:45 -04:00
toasted-nutbread
647769f2ba Update jsdom to version 16.2.1 2020-03-15 22:35:34 -04:00
toasted-nutbread
487d4b239b Add unit tests 2020-03-15 22:25:08 -04:00
toasted-nutbread
701f73440c Add tests 2020-03-14 13:51:06 -04:00
toasted-nutbread
adbdca6a8b Add to test-lint 2020-03-10 22:40:59 -04:00
toasted-nutbread
7c615244f4
Merge pull request #375 from toasted-nutbread/document-tests
Document tests
2020-03-01 14:41:17 -05:00
toasted-nutbread
f463e2e238 Update license strings to remove npm warning 2020-02-23 11:49:10 -05:00
toasted-nutbread
c1d6e5dbf1 Add command to test-code 2020-02-22 15:54:21 -05:00
toasted-nutbread
85aab699e9 Add jsdom dependency 2020-02-22 15:26:49 -05:00
toasted-nutbread
a31ac68574 Update tests 2020-02-18 22:20:00 -05:00
toasted-nutbread
03886eb833 Add fake-indexeddb 2020-02-18 22:16:30 -05:00
toasted-nutbread
174d9e7429 Add some basic unit tests for JSON schemas 2020-02-17 14:20:22 -05:00
toasted-nutbread
e83167dcd1 Add eslint-plugin-no-unsanitized 2020-02-12 19:08:13 -05:00
toasted-nutbread
b97f80e4d9 Setup GitHub actions 2020-02-12 19:07:27 -05:00