Skip to content

Commit

Permalink
Update dependencies and eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwep committed May 20, 2020
1 parent bbc87c5 commit d36a98a
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 53 deletions.
5 changes: 1 addition & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"sourceType": "module"
},
"rules": {
"no-cond-assign": "off",
"no-console": "error",
"keyword-spacing": "warn",
"eqeqeq": "error"
"new-cap": "off"
}
}
78 changes: 42 additions & 36 deletions package-lock.json

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

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@
"@babel/plugin-proposal-object-rest-spread": "^7.9.6",
"@babel/plugin-transform-parameters": "^7.9.5",
"@babel/preset-env": "^7.9.6",
"autoprefixer": "^9.7.6",
"autoprefixer": "^9.8.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"css-loader": "^3.5.3",
"eslint": "^7.0.0",
"eslint-config-simon": "^1.3.0",
"eslint-config-simon": "^2.0.0",
"eslint-loader": "^4.0.2",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.14.1",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^3.0.0",
"sass-loader": "^8.0.2",
"typescript": "^3.8.3",
"typescript": "^3.9.3",
"webpack": "^4.43.0",
"webpack-cleanup-plugin": "^0.5.1",
"webpack-cli": "^3.3.11",
"webpack-dev-server": "^3.11.0",
"webpack-fix-style-only-entries": "^0.4.0"
"webpack-fix-style-only-entries": "^0.5.0"
},
"homepage": "https://github.com/Simonwep/pickr#readme",
"repository": {
Expand All @@ -51,7 +51,7 @@
"url": "https://github.com/Simonwep/pickr/issues"
},
"dependencies": {
"nanopop": "^1.1.3",
"nanopop": "^1.3.0",
"core-js": "^3.6.5"
}
}
15 changes: 8 additions & 7 deletions src/js/pickr.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import * as _ from './utils/utils';
import {version} from '../../package';
import * as _ from './utils/utils';
import {version} from '../../package';
import {parseToHSVA} from './utils/color';
import {HSVaColor} from './utils/hsvacolor';
import Moveable from './libs/moveable';
import Selectable from './libs/selectable';
import buildPickr from './template';
import {NanoPop} from 'nanopop';
import {HSVaColor} from './utils/hsvacolor';
import Moveable from './libs/moveable';
import Selectable from './libs/selectable';
import buildPickr from './template';
import {NanoPop} from 'nanopop';

class Pickr {

Expand Down Expand Up @@ -427,6 +427,7 @@ class Pickr {
const ck = options.closeWithKey;

eventBindings.push(

// Save and hide / show picker
_.on(_root.button, 'click', () => this.isOpen() ? this.hide() : this.show()),

Expand Down
2 changes: 1 addition & 1 deletion src/js/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ export default instance => {
// Append method to find currently active option
int.type = () => int.options.find(e => e.classList.contains('active'));
return root;
}
};

0 comments on commit d36a98a

Please sign in to comment.