This moves the transform callback into a function that is returned with access to the current merged options in a closure. Ensures that bem-linter and reporter get any options.
Added a test where it throws an error on conformance failure. This is what I expect will be a common use to fail builds. Will be useful for our own npm test in the future.
This moves the
transform
callback into a function that is returned with access to the current merged options in a closure. Ensures thatbem-linter
andreporter
get any options.Added a test where it throws an error on conformance failure. This is what I expect will be a common use to fail builds. Will be useful for our own
npm test
in the future.