mirror of
https://ghproxy.net/https://github.com/elementor/activity-log.git
synced 2025-10-03 22:37:02 +08:00
Added jshint task in Gruntfile, see #48
This commit is contained in:
parent
ad7790f12d
commit
f6044d9888
4 changed files with 30 additions and 0 deletions
16
.jshintrc
Normal file
16
.jshintrc
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"bitwise": true,
|
||||
"browser": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"eqnull": true,
|
||||
"esnext": true,
|
||||
"immed": true,
|
||||
"jquery": true,
|
||||
"latedef": true,
|
||||
"newcap": true,
|
||||
"noarg": true,
|
||||
"node": true,
|
||||
"strict": false,
|
||||
"trailing": true
|
||||
}
|
10
Gruntfile.js
10
Gruntfile.js
|
@ -82,6 +82,15 @@ module.exports = function(grunt) {
|
|||
}
|
||||
},
|
||||
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: '.jshintrc'
|
||||
},
|
||||
all: [
|
||||
'assets/js/settings.js'
|
||||
]
|
||||
},
|
||||
|
||||
bumpup: {
|
||||
options: {
|
||||
updateProps: {
|
||||
|
@ -157,6 +166,7 @@ module.exports = function(grunt) {
|
|||
'!.git/**',
|
||||
'!tests/**',
|
||||
'!.travis.yml',
|
||||
'!.jshintrc',
|
||||
'!README.md',
|
||||
'!phpunit.xml',
|
||||
'!vendor/**',
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
'use strict';
|
||||
|
||||
( function ( $, undefined ) {
|
||||
var AAL = {
|
||||
$wrapper: {},
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
"grunt-checktextdomain": "~0.1.1",
|
||||
"grunt-pot": "~0.1.2",
|
||||
"grunt-phpunit": "~0.3.3",
|
||||
"grunt-contrib-jshint": "~0.6.4",
|
||||
"grunt-contrib-watch": "~0.3.1",
|
||||
"grunt-wp-readme-to-markdown-with-extra": "~0.6.0",
|
||||
"grunt-bumpup": "~0.5.2",
|
||||
"grunt-shell": "~0.6.4",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue