dsheiko / grunt-jscodesniffer Goto Github PK
View Code? Open in Web Editor NEW⛔️ [DEPRECATED] A grunt task for running JS Codesniffer validator
License: MIT License
⛔️ [DEPRECATED] A grunt task for running JS Codesniffer validator
License: MIT License
I noticed you have grunt-lib-contrib as a dependency.
It's deprecated and I would recommend you switch to the extracted modules instead:
stripPath
=> strip-path
minMaxInfo
=> maxmin
getNamespaceDeclaration
=> ticket
Can't seem to get report-file
option to work. Tried:
options: {
'standard': 'Jquery',
'report-file': './jscsReport.txt'
},
Report summary displayed by grunt, but no report is generated.
Documentation has conflicting references to grunt-jscs vs. grunt-contrib-jscs. From here:
https://www.npmjs.org/package/grunt-contrib-jscs
the documentation mentions:
npm install grunt-jscs --save-dev
and then
grunt.loadNpmTasks( "grunt-contrib-jscs" );
Which is it? grunt-jscs or grunt-contrib-jscs?
Is there no way to specify a configuration file? I'd like more fine grained control over which rules to apply.
Doesn't seem to allow for multiple files or directories. Also, doesn't seem to allow for paths such as app/**/*.js
.
files: {
src: [ "app/dir1", "app/dir2" ] // Target-specific file/directory goes here.
}
Not sure what happened, but installing @0.1.2 works without a hitch.
$ npm install [email protected]
npm http GET https://registry.npmjs.org/grunt-contrib-jscs/0.1.3
npm http 200 https://registry.npmjs.org/grunt-contrib-jscs/0.1.3
npm http GET https://registry.npmjs.org/grunt-contrib-jscs/-/grunt-contrib-jscs-0.1.3.tgz
npm http 200 https://registry.npmjs.org/grunt-contrib-jscs/-/grunt-contrib-jscs-0.1.3.tgz
npm http GET https://registry.npmjs.org/jscodesniffer
npm http GET https://registry.npmjs.org/grunt-lib-contrib
npm http 304 https://registry.npmjs.org/grunt-lib-contrib
npm http 304 https://registry.npmjs.org/jscodesniffer
npm http GET https://registry.npmjs.org/zlib-browserify/0.0.1
npm http GET https://registry.npmjs.org/esprima
npm http 304 https://registry.npmjs.org/zlib-browserify/0.0.1
npm http 304 https://registry.npmjs.org/esprima
> [email protected] postinstall /home/andrew/projects/bootstrap-datepicker/node_modules/grunt-contrib-jscs
> npm i
npm http GET https://registry.npmjs.org/grunt-contrib-jshint
npm http GET https://registry.npmjs.org/grunt
npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
npm http 304 https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http GET https://registry.npmjs.org/eventemitter2
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/hooker
npm http GET https://registry.npmjs.org/iconv-lite
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/underscore.string
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/js-yaml
npm http GET https://registry.npmjs.org/exit
npm http GET https://registry.npmjs.org/getobject
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/jshint
npm http 304 https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http 304 https://registry.npmjs.org/eventemitter2
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/findup-sync
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/hooker
npm http 304 https://registry.npmjs.org/iconv-lite
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/js-yaml
npm http 304 https://registry.npmjs.org/exit
npm http 304 https://registry.npmjs.org/getobject
npm http GET https://registry.npmjs.org/cli/0.4.3
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/argparse
npm http 304 https://registry.npmjs.org/cli/0.4.3
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/argparse
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore
> [email protected] postinstall /home/andrew/projects/bootstrap-datepicker/node_modules/grunt-contrib-jscs
> npm i
> [email protected] postinstall /home/andrew/projects/bootstrap-datepicker/node_modules/grunt-contrib-jscs
> npm i
> [email protected] postinstall /home/andrew/projects/bootstrap-datepicker/node_modules/grunt-contrib-jscs
> npm i
> [email protected] postinstall /home/andrew/projects/bootstrap-datepicker/node_modules/grunt-contrib-jscs
> npm i
> [email protected] postinstall /home/andrew/projects/bootstrap-datepicker/node_modules/grunt-contrib-jscs
> npm i
> [email protected] postinstall /home/andrew/projects/bootstrap-datepicker/node_modules/grunt-contrib-jscs
> npm i
^C
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.