Skip to content

Commit

Permalink
Merge pull request #78 from Nargonath/master
Browse files Browse the repository at this point in the history
Update prettier config and lint-staged
  • Loading branch information
asfktz authored Nov 10, 2017
2 parents 9562674 + c280888 commit b89a454
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 38 deletions.
36 changes: 18 additions & 18 deletions examples/performance/src/App.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import axios from "axios";
import Draft from "draft-js";
import howler from "howler";
import Immutable from "immutable";
import moment from "moment";
import Pixi from "pixi.js";
import polished from "polished";
import React from "react";
import reactA11y from "react-a11y";
import reactBootstrap from "react-bootstrap";
import ReactDOM from "react-dom";
import reactHelmet from "react-helmet";
import reactMotion from "react-motion";
import reactPlayer from "react-player";
import reactRedux from "react-redux";
import ReactRouterDom from "react-router-dom";
import redux from "redux";
import styled from "styled-components";
import axios from 'axios';
import Draft from 'draft-js';
import howler from 'howler';
import Immutable from 'immutable';
import moment from 'moment';
import Pixi from 'pixi.js';
import polished from 'polished';
import React from 'react';
import reactA11y from 'react-a11y';
import reactBootstrap from 'react-bootstrap';
import ReactDOM from 'react-dom';
import reactHelmet from 'react-helmet';
import reactMotion from 'react-motion';
import reactPlayer from 'react-player';
import reactRedux from 'react-redux';
import ReactRouterDom from 'react-router-dom';
import redux from 'redux';
import styled from 'styled-components';

export default () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion examples/performance/src/TestMoment.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function() {
return moment().format("LLL");
return moment().format('LLL');
}
12 changes: 6 additions & 6 deletions examples/performance/src/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

function render(App) {
ReactDOM.render(<App />, document.getElementById("root"));
ReactDOM.render(<App />, document.getElementById('root'));
}

render(App);

if (module.hot) {
module.hot.accept("./App", () => {
const App = require("./App").default;
module.hot.accept('./App', () => {
const App = require('./App').default;
render(App);
});
}
21 changes: 8 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
"build": "npm run cleanup && babel src --out-dir lib",
"build:watch": "npm run cleanup && babel src --out-dir lib --watch",
"prepublishOnly": "npm run build",
"precommit": "del-cli yarn.lock && lint-staged && npm run test"
"precommit": "del-cli yarn.lock && lint-staged && npm run test",
"format":
"prettier-eslint --print-width 100 --trailing-comma es5 --single-quote --write \"{{src,specs,scripts,examples/**/src,experiments/**/src}/**/*.{js,json,css},*.{js,json}}\" "
},
"files": [
"src",
"lib"
],
"files": ["src", "lib"],
"lint-staged": {
"{src,specs,scripts,examples/**/src,experiments/**/src}/**/*.{js,json,css}": [
"prettier-eslint --print-width 100 --trailing-comma es5 --write",
"{{src,specs,scripts,examples/**/src,experiments/**/src}/**/*.{js,json,css},*.{js,json}}": [
"prettier-eslint --print-width 100 --trailing-comma es5 --single-quote --write",
"git add"
]
},
Expand Down Expand Up @@ -101,14 +100,10 @@
},
"ava": {
"files": [],
"source": [
"src/**/*.js"
],
"source": ["src/**/*.js"],
"concurrency": 5,
"failFast": false,
"require": [
"babel-register"
],
"require": ["babel-register"],
"babel": "inherit"
}
}

0 comments on commit b89a454

Please sign in to comment.