Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Fix microtime, eslint #219

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
sudo: false

# iojs requires GCC 4.8
# https://github.com/wadey/node-microtime/issues/34#issuecomment-138529797
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8

language: node_js
node_js:
- iojs
Expand Down
17 changes: 10 additions & 7 deletions docs/src/modules/SVGIcon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,31 @@ const cleanups = {
// @styled(styles)
export default class SVGIcon extends Component {

static defaultProps = {
component: "span",
classSuffix: "-svg",
cleanup: [],
cleanupExceptions: [],
}

static propTypes = {
className: PropTypes.string,
component: PropTypes.oneOfType([
PropTypes.string,
PropTypes.func,
]),
classSuffix: PropTypes.string,
svg: PropTypes.string.isRequired,
fill: PropTypes.string,
cleanup: PropTypes.oneOfType([
PropTypes.bool,
PropTypes.array,
]),
cleanupExceptions: PropTypes.array,
width: PropTypes.string,
height: PropTypes.string,
}

static defaultProps = {
component: "span",
classSuffix: "-svg",
cleanup: [],
cleanupExceptions: [],
}

static cleanupSvg(svg, cleanup = []) {
return Object.keys(cleanups)
.filter(key => cleanup.includes(key))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"metalsmith-rss": "^1.0.0",
"metalsmith-url": "^1.0.0",
"metalsmith-watch": "^1.0.1",
"microtime": "^1.2.0",
"microtime": "^1.5.0",
"nano-logger": "^1.0.0",
"node-libs-browser": "^0.5.0",
"normalize.css": "^3.0.3",
Expand Down