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: [ plugins: [
'html' 'html'
], ],
globals: {
'FileReader': false,
'Element': false,
'FormData': false,
'XMLHttpRequest': false
},
// add your custom rules here // add your custom rules here
rules: { rules: {
// allow paren-less arrow functions // allow paren-less arrow functions

View File

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