Comments (4)
The beep happens with grunt.fatal/warn
. So if force is on the task won't fail thus no beep. The upcoming watch task will emit a beep when task runs have completed though. So you'll have the noise back soon. :)
from grunt-contrib-jshint.
I liked being able to save a file and get immediate feedback: no beep = no lint.
Could jshint with force warn
on error instead of fatal?
from grunt-contrib-jshint.
Is there an event that I could hook into to make my own beep? Like
grunt.event.on('jshint:fail', function() {
grunt.warn();
});
from grunt-contrib-jshint.
I just updated grunt-beep to be able to beep the terminal only if there was an error or warning. This works with force
set as well. So you can now do the following to only beep if jshint had an error:
grunt.initConfig({
watch: {
files: ['lib/*.js'],
// only beep if jshint had an error
tasks: ['jshint', 'beep:error'],
},
});
from grunt-contrib-jshint.
Related Issues (20)
- Option to allow multiple reporters and outputs HOT 1
- Latest release (0.11.0) fails when reporterOutput is set to the default value (null) HOT 3
- npm ERR! peerinvalid Peer [email protected] wants grunt@>=0.4.0 HOT 1
- minimatch deprecated HOT 6
- Multiple reporterOutputs?
- Update to grunt v1.0
- No Output in Windows
- with_overrides aren't not working HOT 1
- Provide Linux Installation Command HOT 2
- "unused": false doesn't work at all
- Opening a file clears all JSHint messages from Visual Studio Error List window
- Loading "jshint.js" tasks...ERROR. TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string HOT 1
- paychex
- 'URLSearchParams' is not defined. HOT 1
- Updated Release Coming? HOT 3
- Update Jshint dependency HOT 2
- Updating dependency HOT 1
- Promise usage results in errors
- [UPDATE DEPENDENCIES] [JSHINT 2.13.0] New release of Jshint is now avaiable HOT 2
- Still experiencing problems when using ES6 syntax HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-contrib-jshint.