The document say "--watch-poll" option can determine "The polling
interval for watching (also enable polling)". But the previous
implement only accept boolean value and no way to set the interval.
This patch try to fix this problem by allow number input like this:
"--watch-poll=100".
This patch also try to keep the original behavior not be changed as much
as possible. So "--watch-poll" and "--watch-poll=true" are still
acceptable (enable the polling ability).
But still has one incompatible change: original "--watch-poll=" mean
disable polling but after this fix it mean enable polling. It's due to
yargs can not differentiate the different between "--watch-poll" and
"--watch-poll=" when using string type option. So no way to workaround
for this problem.
* refactor(eslint): Added no-unsed-vars, env specific .eslintrc's for buildin & hot
* This change allows for buildin to now be part of the lint test by addition of an extra .eslintrc file which extends existing but sets es6 to false
* Turned on no-unused-vars for eslint, and then removed all warnings from turning that feature on
* Was getting notified of errors in "quote" property in eslintrc, so changed to correct value from error to 2.
* beautify
* swap invalid eslint config val
* Upgrade eslint
* Pin down eslint version
* Temporary fix for difference between js-beautify and eslint
js-beautify suddenly requires a space between `while` here,
but everywhere else we use it without space.
* Remove redundant rules (present in eslint:recommended)
* Add rules comparable to js-beautify rules to eslint
* Add some forgotten files
* Ugh, fix some differences between eslint and js-beautify the nuclear way
* Add back variables
Ajv is using doT to compile validation logic. There is minimal overhead validating an object against a pre-compiled schema. In case of the CLI, options will be validated once by the CLI engine and the second time by API.
I prefer to explicitly handle error checking rather than relying on an error getting thrown by the API engine.
API needs to retain “validationErrors” object nevertheless to enable debugging when using webpack programmatically.