Skip to content

Commit 162bdc9

Browse files
committed
add eslint, remove tslint
1 parent 04938a7 commit 162bdc9

File tree

9 files changed

+1981
-187
lines changed

9 files changed

+1981
-187
lines changed

.eslintrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module.exports = {
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
plugins: [
5+
'@typescript-eslint',
6+
],
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:@typescript-eslint/recommended',
10+
],
11+
rules: {
12+
"@typescript-eslint/no-explicit-any": "off",
13+
"@typescript-eslint/explicit-module-boundary-types": "off"
14+
}
15+
};

dist/countUp.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var CountUp = /** @class */ (function () {
1616
this.target = target;
1717
this.endVal = endVal;
1818
this.options = options;
19-
this.version = '2.0.7';
19+
this.version = '2.0.8';
2020
this.defaults = {
2121
startVal: 0,
2222
decimalPlaces: 0,
@@ -87,10 +87,10 @@ var CountUp = /** @class */ (function () {
8787
// default format and easing functions
8888
this.formatNumber = function (num) {
8989
var neg = (num < 0) ? '-' : '';
90-
var result, x, x1, x2, x3;
90+
var result, x1, x2, x3;
9191
result = Math.abs(num).toFixed(_this.options.decimalPlaces);
9292
result += '';
93-
x = result.split('.');
93+
var x = result.split('.');
9494
x1 = x[0];
9595
x2 = x.length > 1 ? _this.options.decimal + x[1] : '';
9696
if (_this.options.useGrouping) {

dist/countUp.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/countUp.umd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
this.target = target;
2323
this.endVal = endVal;
2424
this.options = options;
25-
this.version = '2.0.7';
25+
this.version = '2.0.8';
2626
this.defaults = {
2727
startVal: 0,
2828
decimalPlaces: 0,
@@ -93,10 +93,10 @@
9393
// default format and easing functions
9494
this.formatNumber = function (num) {
9595
var neg = (num < 0) ? '-' : '';
96-
var result, x, x1, x2, x3;
96+
var result, x1, x2, x3;
9797
result = Math.abs(num).toFixed(_this.options.decimalPlaces);
9898
result += '';
99-
x = result.split('.');
99+
var x = result.split('.');
100100
x1 = x[0];
101101
x2 = x.length > 1 ? _this.options.decimal + x[1] : '';
102102
if (_this.options.useGrouping) {

0 commit comments

Comments
 (0)