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 fs = require('fs');
const path = require('path'); const path = require('path');

View File

@@ -1,4 +1,4 @@
'use strict';
// This is a custom Jest transformer turning style imports into empty objects. // This is a custom Jest transformer turning style imports into empty objects.
// http://facebook.github.io/jest/docs/en/webpack.html // http://facebook.github.io/jest/docs/en/webpack.html

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -78,6 +78,8 @@
"start": "node scripts/start.js", "start": "node scripts/start.js",
"build": "node scripts/build.js", "build": "node scripts/build.js",
"test": "node scripts/test.js", "test": "node scripts/test.js",
"lint": "eslint . --ext .js,.ts",
"lint-fix": "eslint . --ext .js,.ts --fix",
"generate": "plop" "generate": "plop"
}, },
"eslintConfig": { "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. // Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'production'; 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. // Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'development'; 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. // Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'test'; process.env.BABEL_ENV = 'test';

View File

@@ -34,7 +34,7 @@ const Image = props => {
const img = base64Flag + imageStr const img = base64Flag + imageStr
image.img.imageUrl = img image.img.imageUrl = img
setImg(img) setImg(img)
}) }, [image.img.data.data, image.img.imageUrl])
const arrayBufferToBase64 = (buffer) => { const arrayBufferToBase64 = (buffer) => {
var binary = ''; var binary = '';

View File

@@ -4,7 +4,7 @@ import {connect} from 'react-redux'
import {createPropsSelector} from 'reselect-immutable-helpers' import {createPropsSelector} from 'reselect-immutable-helpers'
import {getImages} from './../../../../pages/Home/selectors' import {getImages} from './../../../../pages/Home/selectors'
import ImageCard from './Image' import ImageCard from './Image'
import Image from './../../../../models/image.model' // import Image from './../../../../models/image.model'
class ImageContainer extends React.Component { class ImageContainer extends React.Component {

View File

@@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import MoodSelector from '../MoodSelector/MoodSelector'; // import MoodSelector from '../MoodSelector/MoodSelector';
const MoodCard = ({mood}) => { const MoodCard = ({mood}) => {
return ( return (

View File

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

View File

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