Skip to content

Commit

Permalink
feat(lint): add eslint to test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
eddywashere committed Jan 28, 2017
1 parent 6adf91a commit 4756833
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "react-app"
}
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cache:
before_script:
- chmod +x scripts/docs-ci
script:
- npm run lint
- npm test -- --coverage
after_success:
- scripts/docs-ci
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"lint": "eslint src",
"prebuild": "babel src/components --out-dir lib --ignore test.js",
"create-release-branch": "sh ./scripts/create-release-branch",
"publish-release": "sh ./scripts/publish-release",
Expand All @@ -29,6 +30,7 @@
"conventional-recommended-bump": "^0.3.0",
"dentist": "^1.0.3",
"enzyme": "^2.4.1",
"eslint": "^3.8.1",
"history": "^4.2.0",
"react": "^15.3.2",
"react-addons-test-utils": "^15.3.2",
Expand Down
2 changes: 1 addition & 1 deletion src/docs/layout/Nav.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Link } from 'react-router';
import { Container, Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, NavLink } from 'reactstrap';
import { Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, NavLink } from 'reactstrap';

class LayoutNav extends React.Component {
constructor(props) {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2377,7 +2377,7 @@ [email protected]:
doctrine "^1.2.2"
jsx-ast-utils "^1.3.1"

[email protected]:
[email protected], eslint@^3.8.1:
version "3.8.1"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.8.1.tgz#7d02db44cd5aaf4fa7aa489e1f083baa454342ba"
dependencies:
Expand Down

0 comments on commit 4756833

Please sign in to comment.