Skip to content

Commit 631c542

Browse files
committed
modernize jsform and version bump to 1.7.0
1 parent a9ddb1f commit 631c542

13 files changed

+1226
-838
lines changed

.jshintrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"esversion": 11,
3+
"-W138": true,
4+
"-W083": true,
35
"boss": true,
46
"curly": true,
57
"eqeqeq": true,
@@ -14,5 +16,5 @@
1416
"undef": true,
1517
"unused": true,
1618

17-
"node": true
19+
"node": false
1820
}

Gruntfile.js

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
module.exports = function( grunt ) {
2-
3-
"use strict";
41

2+
module.exports = function( grunt ) {
53
var readOptionalJSON = function( filepath ) {
64
var data = {};
75
try {
@@ -37,16 +35,8 @@ module.exports = function( grunt ) {
3735
}
3836
},
3937
options: {
40-
esversion: 11
38+
esversion: 2020
4139
}
42-
// tests: {
43-
// TODO: Once .jshintignore is supported, use that instead.
44-
// issue located here: https://github.com/gruntjs/grunt-contrib-jshint/issues/1
45-
// src: [ "test/data/{test,testinit,testrunner}.js", "test/unit/**/*.js" ],
46-
// options: {
47-
// jshintrc: "test/.jshintrc"
48-
// }
49-
// }
5040
},
5141
uglify: {
5242
all: {
@@ -71,6 +61,6 @@ module.exports = function( grunt ) {
7161

7262

7363
// Short list as a high frequency watch task
74-
grunt.registerTask( "default", [ "concat:js", "concat:js2", "uglify", "jshint" ] );
64+
grunt.registerTask( "default", [ "concat:js", "concat:js2", "uglify" ] );
7565
};
7666

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ Optional Libraries are used with jquery.jsForm.controls.js to allow various inpu
3939
* [clockpicker](https://weareoutman.github.io/clockpicker/) used to display a clock input using input class="time"
4040
* [flatpickr](https://flatpickr.js.org) date and dateTime control (class="date" or class="dateTime")
4141
* [datetimepicker](https://eonasdan.github.io/bootstrap-datetimepicker/) alternative datetime picker (class="date" or class="dateTime")
42-
* [Moment.js](http://momentjs.com/) allows for finer grained international date support (deprecated) -> use [luxon](https://moment.github.io/luxon/)
4342

4443
# Download
4544

46-
Current Version: 1.6.0
45+
Current Version: 1.7.0
4746

4847
* [Minified](https://github.com/corinis/jsForm/raw/master/js/jquery.jsForm.min.js)
4948
* [Combined Source](https://github.com/corinis/jsForm/raw/master/js/jquery.jsForm.js)

0 commit comments

Comments
 (0)