lint fix updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const camelcase = require('camelcase');
|
const camelcase = require('camelcase');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const { resolveModuleName } = require('ts-pnp');
|
const { resolveModuleName } = require('ts-pnp');
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const isWsl = require('is-wsl');
|
const isWsl = require('is-wsl');
|
||||||
|
|||||||
@@ -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');
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|||||||
@@ -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 = '';
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|
||||||
|
|||||||
@@ -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 (
|
||||||
|
|||||||
@@ -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 => {
|
||||||
|
|||||||
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user