Skip to content

Commit

Permalink
Make the linter print better error messages (#2338)
Browse files Browse the repository at this point in the history
* Prevent JSON syntax errors from breaking the build
* Use `better-ajv-errors` for printing JSON schema errors
* chore(package): update ajv to version 6.6.2
  • Loading branch information
ExE-Boss authored and Elchi3 committed Jan 7, 2019
1 parent 57919a1 commit 3db425c
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 52 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ function load() {
if (fs.statSync(fp).isDirectory()) {
extra = load(fp);
} else if (path.extname(fp) === '.json') {
extra = require(fp);
try {
extra = require(fp);
} catch (e) {}
}

// The JSON data is independent of the actual file
Expand Down
205 changes: 175 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3db425c

Please sign in to comment.