Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sambernard committed Aug 13, 2018
1 parent eba034f commit 0b001ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"presets": [
"react",
"es2015",
"stage-2"
"stage-2",
"react"
]
}
2 changes: 1 addition & 1 deletion modules/Preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Preload extends React.Component {
const oldImages = new Set(prevProps.images);

let hasChanged = false;
for (let i = 0; i < images.length; i++) {
for (let i = 0; i < images.length; i += 1) {
const image = images[i];
if (!oldImages.has(image)) {
hasChanged = true;
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "./node_modules/.bin/webpack-dev-server --mode development --content-base examples/",
"build": "./scripts/build.sh",
"test": "./node_modules/.bin/eslint -c .eslintrc modules/*",
"lint": "./node_modules/.bin/eslint -c .eslintrc modules/*",
"prepublish": "npm run build"
},
"repository": {
Expand All @@ -27,26 +27,24 @@
},
"homepage": "https://github.com/sambernard/react-preload",
"peerDependencies": {

"react": "^15.0.0",
"prop-types": "^15.0.0"
"prop-types": "^15.0.0",
"react": "^15.0.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-loader": "^7.1.5",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.0.0",
"eslint-loader": "^2.1.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.10.0",
"react-dom": "^15.0.0",
"react-test-renderer": "^16.4.2",
"webpack": "^4.16.5",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.5"
Expand Down

0 comments on commit 0b001ef

Please sign in to comment.