Skip to content

Commit

Permalink
add eslint, remove tslint
Browse files Browse the repository at this point in the history
  • Loading branch information
inorganik committed Jul 27, 2021
1 parent 04938a7 commit 162bdc9
Show file tree
Hide file tree
Showing 9 changed files with 1,981 additions and 187 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
};
6 changes: 3 additions & 3 deletions dist/countUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var CountUp = /** @class */ (function () {
this.target = target;
this.endVal = endVal;
this.options = options;
this.version = '2.0.7';
this.version = '2.0.8';
this.defaults = {
startVal: 0,
decimalPlaces: 0,
Expand Down Expand Up @@ -87,10 +87,10 @@ var CountUp = /** @class */ (function () {
// default format and easing functions
this.formatNumber = function (num) {
var neg = (num < 0) ? '-' : '';
var result, x, x1, x2, x3;
var result, x1, x2, x3;
result = Math.abs(num).toFixed(_this.options.decimalPlaces);
result += '';
x = result.split('.');
var x = result.split('.');
x1 = x[0];
x2 = x.length > 1 ? _this.options.decimal + x[1] : '';
if (_this.options.useGrouping) {
Expand Down
2 changes: 1 addition & 1 deletion dist/countUp.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/countUp.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
this.target = target;
this.endVal = endVal;
this.options = options;
this.version = '2.0.7';
this.version = '2.0.8';
this.defaults = {
startVal: 0,
decimalPlaces: 0,
Expand Down Expand Up @@ -93,10 +93,10 @@
// default format and easing functions
this.formatNumber = function (num) {
var neg = (num < 0) ? '-' : '';
var result, x, x1, x2, x3;
var result, x1, x2, x3;
result = Math.abs(num).toFixed(_this.options.decimalPlaces);
result += '';
x = result.split('.');
var x = result.split('.');
x1 = x[0];
x2 = x.length > 1 ? _this.options.decimal + x[1] : '';
if (_this.options.useGrouping) {
Expand Down
Loading

0 comments on commit 162bdc9

Please sign in to comment.