lint fix updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
// This is a custom Jest transformer turning style imports into empty objects.
|
||||
// http://facebook.github.io/jest/docs/en/webpack.html
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
const path = require('path');
|
||||
const camelcase = require('camelcase');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
const { resolveModuleName } = require('ts-pnp');
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
const fs = require('fs');
|
||||
const isWsl = require('is-wsl');
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
|
||||
const evalSourceMapMiddleware = require('react-dev-utils/evalSourceMapMiddleware');
|
||||
|
||||
@@ -78,6 +78,8 @@
|
||||
"start": "node scripts/start.js",
|
||||
"build": "node scripts/build.js",
|
||||
"test": "node scripts/test.js",
|
||||
"lint": "eslint . --ext .js,.ts",
|
||||
"lint-fix": "eslint . --ext .js,.ts --fix",
|
||||
"generate": "plop"
|
||||
},
|
||||
"eslintConfig": {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
// Do this as the first thing so that any code reading it knows the right env.
|
||||
process.env.BABEL_ENV = 'production';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
// Do this as the first thing so that any code reading it knows the right env.
|
||||
process.env.BABEL_ENV = 'development';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
'use strict';
|
||||
|
||||
|
||||
// Do this as the first thing so that any code reading it knows the right env.
|
||||
process.env.BABEL_ENV = 'test';
|
||||
|
||||
@@ -34,7 +34,7 @@ const Image = props => {
|
||||
const img = base64Flag + imageStr
|
||||
image.img.imageUrl = img
|
||||
setImg(img)
|
||||
})
|
||||
}, [image.img.data.data, image.img.imageUrl])
|
||||
|
||||
const arrayBufferToBase64 = (buffer) => {
|
||||
var binary = '';
|
||||
|
||||
@@ -4,7 +4,7 @@ import {connect} from 'react-redux'
|
||||
import {createPropsSelector} from 'reselect-immutable-helpers'
|
||||
import {getImages} from './../../../../pages/Home/selectors'
|
||||
import ImageCard from './Image'
|
||||
import Image from './../../../../models/image.model'
|
||||
// import Image from './../../../../models/image.model'
|
||||
|
||||
class ImageContainer extends React.Component {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import MoodSelector from '../MoodSelector/MoodSelector';
|
||||
// import MoodSelector from '../MoodSelector/MoodSelector';
|
||||
|
||||
const MoodCard = ({mood}) => {
|
||||
return (
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import MoodCard from '../MoodCard/MoodCard';
|
||||
|
||||
const MoodSelector = props => {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
export default class DataService {
|
||||
|
||||
constructor() { }
|
||||
|
||||
getFeaturedImages() {
|
||||
return fetch('/images/nature')
|
||||
.then(res => {
|
||||
|
||||
Reference in New Issue
Block a user