Skip to content

Commit

Permalink
Add ESLint config.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstange committed May 11, 2016
1 parent ddec952 commit 0cb14c7
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
module.exports = {
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"comma-dangle": [
"error",
"always-multiline"
]
},
"settings": {
"react": {
"pragma": "React",
"version": "15.0"
}
}
};
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { AppContainer } from 'react-hot-loader';

import rootReducer from './src/reducers';
import Root from './src/containers/Root';

window.geckoProfilerPromise = new Promise(function (resolve, reject) {
window.geckoProfilerPromise = new Promise(function (resolve) {
window.connectToGeckoProfiler = resolve;
});

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"bisection": "0.0.3",
"browserify": "^12.0.1",
"chai": "^3.5.0",
"eslint": "^2.9.0",
"eslint-config-google": "^0.5.0",
"eslint-plugin-react": "^5.1.1",
"express": "^4.13.4",
"live-server": "^0.8.2",
"memoizesync": "^0.5.0",
Expand Down

0 comments on commit 0cb14c7

Please sign in to comment.