Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #84 from magopian/79-run-eslint
Browse files Browse the repository at this point in the history
eslint things for real
  • Loading branch information
andymikulski committed Apr 5, 2018
2 parents 7e2d930 + f7426cd commit d2eaf52
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@
"eject": "react-scripts eject",
"lint:flow": "flow",
"lint:less": "stylelint 'src/**/*.less' --config .stylelintrc",
"lint:prettier-eslint": "prettier-eslint --list-different 'src/**/*.js' | ./lint_problems.sh",
"lint:prettier-eslintfix": "prettier-eslint --write 'src/**/*.js'",
"lint": "yarn run lint:flow && yarn run lint:prettier-eslint && yarn run lint:less"
"lint:eslint": "eslint -c node_modules/eslint-config-react-app/index.js --max-warnings 0 'src/**/*.js'",
"lint:eslintfix": "eslint -c node_modules/eslint-config-react-app/index.js --max-warnings 0 --fix 'src/**/*.js'",
"lint:prettier-eslint": "prettier-eslint --list-different 'src/**/*.js' | ./lint_problems.sh && yarn run lint:eslint",
"lint:prettier-eslintfix": "prettier-eslint --write 'src/**/*.js' && yarn run lint:eslintfix",
"lint": "yarn run lint:flow && yarn run lint:prettier-eslint && yarn run lint:eslint && yarn run lint:less"
},
"devDependencies": {
"babel-plugin-import": "1.7.0",
Expand Down
1 change: 0 additions & 1 deletion src/console/App.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { shallow } from 'enzyme';

Expand Down
1 change: 1 addition & 0 deletions src/console/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import ReactDOM from 'react-dom';
import Root from './App';

Expand Down
1 change: 0 additions & 1 deletion src/normandy/App.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { shallow } from 'enzyme';

Expand Down
1 change: 0 additions & 1 deletion src/normandy/tests/mockStore.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import { Route, Redirect, Switch } from 'react-router';
import { Provider } from 'react-redux';
import { applyMiddleware, compose, createStore } from 'redux';
import thunk from 'redux-thunk';
Expand Down
2 changes: 1 addition & 1 deletion src/normandy/tests/utils/test_handleError.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import APIClient, { APIError } from 'normandy/utils/api';
import { APIError } from 'normandy/utils/api';
import { ValidationError } from 'normandy/utils/forms';
import handleError, { ERR_MESSAGES } from 'normandy/utils/handleError';
import {
Expand Down

0 comments on commit d2eaf52

Please sign in to comment.