lint fix updates

This commit is contained in:
2020-01-31 16:12:16 +05:30
parent b6ff65b58a
commit ec19224ebc
17 changed files with 16 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
'use strict';
const fs = require('fs');
const path = require('path');

View File

@@ -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

View File

@@ -1,4 +1,4 @@
'use strict';
const path = require('path');
const camelcase = require('camelcase');

View File

@@ -1,4 +1,4 @@
'use strict';
const fs = require('fs');
const path = require('path');

View File

@@ -1,4 +1,4 @@
'use strict';
const path = require('path');
const fs = require('fs');

View File

@@ -1,4 +1,4 @@
'use strict';
const { resolveModuleName } = require('ts-pnp');

View File

@@ -1,4 +1,4 @@
'use strict';
const fs = require('fs');
const isWsl = require('is-wsl');

View File

@@ -1,4 +1,4 @@
'use strict';
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
const evalSourceMapMiddleware = require('react-dev-utils/evalSourceMapMiddleware');

View File

@@ -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": {

View File

@@ -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';

View File

@@ -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';

View File

@@ -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';

View File

@@ -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 = '';

View File

@@ -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 {

View File

@@ -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 (

View File

@@ -1,5 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import MoodCard from '../MoodCard/MoodCard';
const MoodSelector = props => {

View File

@@ -1,7 +1,5 @@
export default class DataService {
constructor() { }
getFeaturedImages() {
return fetch('/images/nature')
.then(res => {