Sean Sube
0427a092be
fix(config): make args parser type safe
2022-11-23 08:03:10 -06:00
Sean Sube
8196d6c10a
feat: re-export most significant symbols from app
2022-04-24 18:13:35 -05:00
Sean Sube
3ac66cf1e8
feat(config): add destination as an alias for d/dest
2022-04-24 18:13:35 -05:00
Sean Sube
a8bfb58d2d
lint: remove console logging for reporter
2022-04-22 18:55:10 -05:00
Sean Sube
912eb82acc
feat(app): add CLI option for reporter
2022-04-22 09:20:55 -05:00
Sean Sube
09f83ee5ab
fix(test): cover new reporters
2022-04-22 09:20:55 -05:00
Sean Sube
8ce71b9bfb
feat(reporter): add markdown delimiter row to table report
2022-04-22 09:17:58 -05:00
Sean Sube
fe4d13d51c
fix(reporter): avoid repeat copies in table report
2022-04-22 09:17:58 -05:00
Sean Sube
2941a1cd9d
feat(reporter): include changes in table report
2022-04-22 09:17:58 -05:00
Sean Sube
f7a4b63d5c
fix(reporter): add margin before and after each table field
2022-04-22 09:17:58 -05:00
Sean Sube
9fbc6b06c4
feat(reporter): format total errors per rule in table reporter
2022-04-22 09:17:58 -05:00
Sean Sube
e9c247f482
report error counts
2022-04-22 09:17:58 -05:00
Sean Sube
0307369fb9
basic YAML reporter
2022-04-22 09:17:58 -05:00
Sean Sube
22f2716e86
merge schema path fix
2022-04-22 09:17:58 -05:00
Sean Sube
441f1d3cdf
stub reporters, test invoke
2022-04-22 09:17:58 -05:00
Sean Sube
84afd78b69
fix(deps): replace usage of deprecated array helper with new name
2022-04-22 09:17:58 -05:00
Sean Sube
f69fd0a730
replace untyped error data with ref to rule and elem
2022-04-22 09:17:58 -05:00
Sean Sube
eb8c665bf2
move pick implementation to rule
2022-04-22 09:17:58 -05:00
Sean Sube
6dc9b70e15
lint: remove unused imports
2022-04-22 09:17:58 -05:00
Sean Sube
456b30d77c
fix remaining tests
2022-04-22 09:17:58 -05:00
Sean Sube
c9af9857f4
fix most of the tests
2022-04-22 09:17:58 -05:00
Sean Sube
299f16b9ba
make schema work with document/element structure
2022-04-22 09:17:58 -05:00
Sean Sube
9ff436859b
build and run tests again
2022-04-22 09:17:58 -05:00
Sean Sube
1fa386581e
feat(source): formalize source data with Document and Element
2022-04-22 09:17:58 -05:00
Sean Sube
a3f0c0b61d
begin adding output reporters
2022-04-22 09:17:58 -05:00
Sean Sube
5768224b72
fix: use built in schema when executing container command
2022-02-23 22:03:20 -06:00
Sean Sube
f40a52a383
fix: look up schema from entrypoint rather than cwd ( fixes #1023 )
2022-02-17 00:52:45 +00:00
Sean Sube
bdf88f092e
feat(deps): upgrade Typescript to 4.5, improve config and rule module error handling
2022-02-06 14:21:54 -06:00
Sean Sube
f7b82590f7
remove: unused entry point files
2022-02-06 00:23:37 -06:00
Sean Sube
9c433fd02b
fix(rule): improve error messaging for empty schema files
2022-02-06 00:23:37 -06:00
Sean Sube
edc800b1c6
lint(rule): extract nested function
2022-02-06 00:23:37 -06:00
Sean Sube
8d8d3da841
fix(lint): indentation in version metadata
2022-02-06 00:23:37 -06:00
Sean Sube
2893437718
fix(build): interpolate bundle with version metadata
2022-02-06 00:23:37 -06:00
Sean Sube
41884525da
feat(build): bundle with esbuild
2022-02-06 00:23:37 -06:00
Sean Sube
ed26185e31
fix(tests): correct paths to schema, test config
2022-02-06 00:23:37 -06:00
Sean Sube
3b7e48a494
fix: usage of __dirname, lint rules and corresponding fixes
2022-02-06 00:23:37 -06:00
Sean Sube
052ca736d2
fix: more ES imports, some corresponding import changes, reset mock FS after every test
2022-02-06 00:23:37 -06:00
Sean Sube
cea8c8abff
feat: convert to ES modules, C8 for coverage
...
BREAKING CHANGE: this is not breaking for users, but for library users,
some bundling or a runtime supporting ES modules is now required.
2022-02-06 00:23:37 -06:00
ssube
41b5a395ee
feat: update Ajv, schema rule usage thereof
...
BREAKING CHANGE: updates Ajv from v6 to v8, with the breaking
changes included there (https://ajv.js.org/v6-to-v8-migration.html ).
This removes support for JSON-Schema draft-04 and adds new
drafts and keywords.
2021-08-07 01:02:33 -05:00
renovate[bot]
d60ec04bb4
update: update dependency @apextoaster/js-yaml-schema to v0.5.0 ( #836 )
...
* update: update dependency @apextoaster/js-yaml-schema to v0.5.0
* fix(parser): add include tag back to updated schema
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: ssube <seansube@gmail.com>
2021-08-05 02:19:26 +00:00
ssube
9c349b9c73
remove unused import
2021-07-14 00:19:42 -05:00
ssube
e7e42eee89
feat: list files using node's fs module instead of recursive-readdir
...
BREAKING CHANGE: this changes how directories are listed, by replacing
the recursive-readdir module with node's readdir method, and a custom
implementation that is compatible with the changes to Node 16's fs
implementation for testing.
2021-07-14 00:13:21 -05:00
ssube
bd56752ceb
fix(config): bundle yargs module again
2021-04-02 22:44:10 -05:00
ssube
3b93a763f4
update: js-yaml and js-yaml-schema
2021-03-28 18:15:42 -05:00
ssube
234b27738e
fix: require commonjs version of yargs to resolve named exports
...
The module version of yargs causes unresolved named export errors
with rollup node-resolve, potentially related to
https://github.com/rollup/plugins/issues/781
2021-03-28 09:30:50 -05:00
ssube
f0338b0f19
Revert "fix(build): disable warnings for shadowing of private global types"
...
This reverts commit c3ad9267fa
.
2020-09-05 18:26:40 -05:00
ssube
c3ad9267fa
fix(build): disable warnings for shadowing of private global types
2020-09-05 18:14:07 -05:00
ssube
04b04a8dd0
lint: replace usages of lodash
2020-08-01 10:46:36 -05:00
ssube
6646c32704
fix(config): update lint to naming-convention rule
2020-07-29 08:33:47 -05:00
ssube
9589f0161a
update: js-yaml-schema to fix readback type
2020-07-14 20:28:31 -05:00