Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
fix: minor linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
michael1011 authored Nov 23, 2018
1 parent 744e82f commit d5eb9db
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
language: node_js

node_js:
- "lts/*"

cache:
directories:
- node_modules
- node_modules

script:
- npm lint
- npm run lint
- npm run build
13 changes: 9 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "boltz-frontend",
"version": "0.1.0",
"private": true,
"version": "1.0.0",
"dependencies": {
"prop-types": "^15.6.2",
"react": "^16.6.3",
Expand All @@ -18,10 +17,10 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"lint": "eslint src",
"lintfix": "eslint --fix src",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"lint": "eslint src",
"lint-fix": "eslint --fix src"
},
"eslintConfig": {
"extends": "react-app"
Expand Down
5 changes: 2 additions & 3 deletions src/components/button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const styles = theme => ({
},
});

const StyledLinkButton = ({ classes, text, to, style, external }) => (
const StyledLinkButton = ({ classes, text, to, style, external }) =>
external ? (
<a
style={style ? style : undefined}
Expand All @@ -35,8 +35,7 @@ const StyledLinkButton = ({ classes, text, to, style, external }) => (
<Link style={style ? style : undefined} className={classes.wrapper} to={to}>
{text}
</Link>
)
);
);

StyledLinkButton.propTypes = {
classes: PropTypes.object,
Expand Down

0 comments on commit d5eb9db

Please sign in to comment.