version bump 1.1.1: lint

This commit is contained in:
SheetJS 2018-01-16 19:55:27 -05:00
parent d3f373079c
commit 350978bd98
14 changed files with 73 additions and 28 deletions

@ -5,14 +5,14 @@
"ecmaVersion": 3,
},
"plugins": [ "html", "json" ],
"!extends": "eslint:recommended",
"extends": "eslint:recommended",
"rules": {
"no-console": 0,
"no-bitwise": 0,
"curly": 0,
"comma-style": [ 2, "last" ],
"comma-dangle": [ 2, "never" ],
"curly": 0,
"no-bitwise": 0,
"no-console": 0,
"no-trailing-spaces": 2,
"semi": [ 2, "always" ],
"comma-dangle": [ 2, "never" ]
"semi": [ 2, "always" ]
}
}

@ -70,6 +70,9 @@ clean-stress: ## Remove stress tests
## Code Checking
.PHONY: fullint
fullint: lint old-lint tslint flow mdlint ## Run all checks
.PHONY: lint
lint: $(TARGET) ## Run eslint checks
@eslint --ext .js,.njs,.json,.html,.htm $(TARGET) $(AUXTARGETS) $(CMDS) $(HTMLLINT) package.json bower.json
@ -103,6 +106,12 @@ misc/coverage.html: $(TARGET) test.js
coveralls: ## Coverage Test + Send to coveralls.io
mocha --require blanket --reporter mocha-lcov-reporter -t 20000 | node ./node_modules/coveralls/bin/coveralls.js
MDLINT=README.md
.PHONY: mdlint
mdlint: $(MDLINT) ## Check markdown documents
alex $^
mdspell -a -n -x -r --en-us $^
.PHONY: help
help:
@grep -hE '(^[a-zA-Z_-][ a-zA-Z_-]*:.*?|^#[#*])' $(MAKEFILE_LIST) | bash misc/help.sh

@ -1,5 +1,6 @@
#!/usr/bin/env node
/* printj.js (C) 2016-present SheetJS -- http://sheetjs.com */
/* eslint-env node */
/* vim: set ts=2 ft=javascript: */
/*jshint node:true, evil:true */
var X = require("../"), argv = process.argv;
@ -42,6 +43,7 @@ function parse_arg(arg/*:string*/)/*:any*/ {
case /*e*/ 101: return eval(m);
case /*s*/ 115: return m;
}
void p;
return arg;
}

@ -7,6 +7,7 @@
var PRINTJ/*:PRINTJModule*/;
(function (factory/*:(a:any)=>void*/)/*:void*/ {
/*jshint ignore:start */
/*eslint-disable */
if(typeof DO_NOT_EXPORT_PRINTJ === 'undefined') {
if('object' === typeof exports) {
factory(exports);
@ -22,6 +23,7 @@ var PRINTJ/*:PRINTJModule*/;
} else {
factory(PRINTJ = /*::(*/{}/*:: :any)*/);
}
/*eslint-enable */
/*jshint ignore:end */
}(function(PRINTJ/*:PRINTJModule*/) {
#include "01_version.js"

@ -1 +1 @@
PRINTJ.version = '1.1.0';
PRINTJ.version = '1.1.1';

@ -7,7 +7,7 @@
/* unsigned integer */
case /*U*/ 85: LONG;
/* falls through */
case /*u*/ 117: INT; break;
case /*u*/ 117: INT; break;
/* unsigned octal */
case /*O*/ 79: LONG;

@ -5,6 +5,7 @@
var PRINTJ;
(function (factory) {
/*jshint ignore:start */
/*eslint-disable */
if(typeof DO_NOT_EXPORT_PRINTJ === 'undefined') {
if('object' === typeof exports) {
factory(exports);
@ -20,10 +21,11 @@ var PRINTJ;
} else {
factory(PRINTJ = {});
}
/*eslint-enable */
/*jshint ignore:end */
}(function(PRINTJ) {
PRINTJ.version = '1.1.0';
PRINTJ.version = '1.1.1';
function tokenize(fmt) {
var out = [];
@ -235,7 +237,7 @@ function doit(t, args) {
/* unsigned integer */
case /*U*/ 85: bytes = 8;
/* falls through */
case /*u*/ 117: isnum = -1; break;
case /*u*/ 117: isnum = -1; break;
/* unsigned octal */
case /*O*/ 79: bytes = 8;

8
dist/printj.js vendored

@ -5,6 +5,7 @@
var PRINTJ;
(function (factory) {
/*jshint ignore:start */
/*eslint-disable */
if(typeof DO_NOT_EXPORT_PRINTJ === 'undefined') {
if('object' === typeof exports) {
factory(exports);
@ -20,10 +21,11 @@ var PRINTJ;
} else {
factory(PRINTJ = {});
}
/*eslint-enable */
/*jshint ignore:end */
}(function(PRINTJ) {
PRINTJ.version = '1.0.1';
PRINTJ.version = '1.1.1';
function tokenize(fmt) {
var out = [];
@ -235,7 +237,7 @@ function doit(t, args) {
/* unsigned integer */
case /*U*/ 85: bytes = 8;
/* falls through */
case /*u*/ 117: isnum = -1; break;
case /*u*/ 117: isnum = -1; break;
/* unsigned octal */
case /*O*/ 79: bytes = 8;
@ -314,6 +316,8 @@ function doit(t, args) {
}
if(width < 0) { width = -width; flags += "-"; }
if(isnum == -1) {
Vnum = Number(arg);

2
dist/printj.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/printj.min.map vendored

File diff suppressed because one or more lines are too long

@ -31,6 +31,7 @@ This implementation supports the full POSIX set of conversions. Consult the enc
<script src="http://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"></script>
<script src="printj.js"></script>
<script type="text/javascript">
/* eslint-env browser */
/*global PRINTJ */
var table = document.getElementById("data");
var ex = [
@ -58,8 +59,6 @@ window.onload = function() {
var c2 = row.insertCell(1); c2.innerHTML = "<pre>" + eval(m) + "</pre>";
});
};
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36810333-1']);
_gaq.push(['_trackPageview']);

@ -1,27 +1,41 @@
{
"name": "printj",
"version": "1.1.0",
"version": "1.1.1",
"author": "sheetjs",
"description": "Pure-JS printf",
"keywords": [ "printf", "sprintf", "format", "string" ],
"keywords": [
"printf",
"sprintf",
"format",
"string"
],
"bin": {
"printj": "./bin/printj.njs"
},
"main": "./printj",
"types": "types",
"browser": {
"process": false,
"util": false
},
"dependencies": {
},
"devDependencies": {
"mocha":"~2.5.3",
"mocha": "~2.5.3",
"blanket": "~1.2.3",
"@sheetjs/uglify-js":"~2.7.3",
"@types/node":"^8.0.7",
"@sheetjs/uglify-js": "~2.7.3",
"@types/node": "^8.0.7",
"dtslint": "^0.1.2",
"typescript": "2.2.0"
},
"repository": { "type":"git", "url":"git://github.com/SheetJS/printj.git" },
"repository": {
"type": "git",
"url": "git://github.com/SheetJS/printj.git"
},
"scripts": {
"test": "make test",
"build": "make",
"lint": "make fullint",
"dtslint": "dtslint types"
},
"config": {
@ -29,9 +43,18 @@
"pattern": "printj.js"
}
},
"alex": {
"allow": [
"period"
]
},
"homepage": "http://sheetjs.com/opensource",
"files": ["printj.js", "bin/printj.njs", "LICENSE", "README.md", "dist/*.js", "dist/*.map", "dist/LICENSE", "types/index.d.ts", "types/*.json"],
"bugs": { "url": "https://github.com/SheetJS/printj/issues" },
"bugs": {
"url": "https://github.com/SheetJS/printj/issues"
},
"license": "Apache-2.0",
"engines": { "node": ">=0.8" }
"engines": {
"node": ">=0.8"
}
}

@ -7,6 +7,7 @@
var PRINTJ/*:PRINTJModule*/;
(function (factory/*:(a:any)=>void*/)/*:void*/ {
/*jshint ignore:start */
/*eslint-disable */
if(typeof DO_NOT_EXPORT_PRINTJ === 'undefined') {
if('object' === typeof exports) {
factory(exports);
@ -22,10 +23,11 @@ var PRINTJ/*:PRINTJModule*/;
} else {
factory(PRINTJ = /*::(*/{}/*:: :any)*/);
}
/*eslint-enable */
/*jshint ignore:end */
}(function(PRINTJ/*:PRINTJModule*/) {
PRINTJ.version = '1.1.0';
PRINTJ.version = '1.1.1';
function tokenize(fmt/*:string*/)/*:ParsedFmt*/ {
var out/*:ParsedFmt*/ = [];
@ -238,7 +240,7 @@ function doit(t/*:ParsedFmt*/, args/*:Array<any>*/)/*:string*/ {
/* unsigned integer */
case /*U*/ 85: bytes = 8;
/* falls through */
case /*u*/ 117: isnum = -1; break;
case /*u*/ 117: isnum = -1; break;
/* unsigned octal */
case /*O*/ 79: bytes = 8;

@ -5,6 +5,7 @@
var PRINTJ;
(function (factory) {
/*jshint ignore:start */
/*eslint-disable */
if(typeof DO_NOT_EXPORT_PRINTJ === 'undefined') {
if('object' === typeof exports) {
factory(exports);
@ -20,10 +21,11 @@ var PRINTJ;
} else {
factory(PRINTJ = {});
}
/*eslint-enable */
/*jshint ignore:end */
}(function(PRINTJ) {
PRINTJ.version = '1.1.0';
PRINTJ.version = '1.1.1';
function tokenize(fmt) {
var out = [];
@ -235,7 +237,7 @@ function doit(t, args) {
/* unsigned integer */
case /*U*/ 85: bytes = 8;
/* falls through */
case /*u*/ 117: isnum = -1; break;
case /*u*/ 117: isnum = -1; break;
/* unsigned octal */
case /*O*/ 79: bytes = 8;