diff --git a/examples/performance/src/App.js b/examples/performance/src/App.js index adde1fc..7e1bd65 100644 --- a/examples/performance/src/App.js +++ b/examples/performance/src/App.js @@ -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 ( diff --git a/examples/performance/src/TestMoment.js b/examples/performance/src/TestMoment.js index 9933372..0c04de1 100644 --- a/examples/performance/src/TestMoment.js +++ b/examples/performance/src/TestMoment.js @@ -1,3 +1,3 @@ export default function() { - return moment().format("LLL"); + return moment().format('LLL'); } diff --git a/examples/performance/src/index.js b/examples/performance/src/index.js index d56f579..c13d3e4 100644 --- a/examples/performance/src/index.js +++ b/examples/performance/src/index.js @@ -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(, document.getElementById("root")); + ReactDOM.render(, 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); }); } diff --git a/package.json b/package.json index e3e0be4..8c9d301 100644 --- a/package.json +++ b/package.json @@ -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" ] }, @@ -101,14 +100,10 @@ }, "ava": { "files": [], - "source": [ - "src/**/*.js" - ], + "source": ["src/**/*.js"], "concurrency": 5, "failFast": false, - "require": [ - "babel-register" - ], + "require": ["babel-register"], "babel": "inherit" } }