Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #34 from whichdigital/eslint-react
Browse files Browse the repository at this point in the history
Add ESLint React plugin
  • Loading branch information
katranci committed Sep 8, 2015
2 parents 2b080d8 + a22d9e4 commit 71f404a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
tmp
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
root: true

plugins:
- react

env:
browser: true
es6: true
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"css-loader": "^0.15.6",
"eslint": "^1.1.0",
"eslint-loader": "^1.0.0",
"eslint-plugin-react": "^3.3.0",
"http-server": "^0.8.0",
"isparta-loader": "^0.2.0",
"karma": "^0.13.9",
Expand All @@ -35,7 +36,7 @@
"clean": "rm -fr tmp/coverage/javascript/* && rm -fr dist/*",
"dev-server": "node webpack-dev-server.js",
"start": "http-server -p 5001",
"lint": "eslint --ignore-pattern dist ./; exit 0",
"lint": "eslint ./; exit 0",
"test": "karma start"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion spec/section_spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'core-js/es5';
import React from 'react/addons';
import Section from '../src/book/section.jsx'; // eslint-disable-line no-unused-vars
import Section from '../src/book/section.jsx';
import Heading from '../src/book/heading.jsx';
import Description from '../src/book/description.jsx';

Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import './navigation/links.scss';
import React from 'react';
import Book from './book/book.js';

import Section from './book/section.jsx'; // eslint-disable-line no-unused-vars
import Section from './book/section.jsx';
React.render( <Section />, document.getElementById( 'heading-container' ) );

var book = new Book();
Expand Down
4 changes: 2 additions & 2 deletions src/book/section.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Heading from './heading.jsx'; // eslint-disable-line no-unused-vars
import Description from './description.jsx'; // eslint-disable-line no-unused-vars
import Heading from './heading.jsx';
import Description from './description.jsx';

export default class extends React.Component {
render() {
Expand Down

0 comments on commit 71f404a

Please sign in to comment.