Revert eslintrc changes

This commit is contained in:
taehoon 2019-02-08 12:13:23 -05:00
parent b458b2ae5f
commit 546ba9eba9
2 changed files with 2 additions and 8 deletions

View file

@ -10,12 +10,6 @@ module.exports = {
plugins: [
'html'
],
globals: {
'FileReader': false,
'Element': false,
'FormData': false,
'XMLHttpRequest': false
},
// add your custom rules here
rules: {
// allow paren-less arrow functions

View file

@ -5,7 +5,7 @@ import 'cropperjs/dist/cropper.css'
const ImageCropper = {
props: {
trigger: {
type: [String, Element],
type: [String, window.Element],
required: true
},
cropperOptions: {
@ -74,7 +74,7 @@ const ImageCropper = {
readFile () {
const fileInput = this.$refs.input
if (fileInput.files != null && fileInput.files[0] != null) {
let reader = new FileReader()
let reader = new window.FileReader()
reader.onload = (e) => {
this.dataUrl = e.target.result
}