Skip to content

Commit

Permalink
Check prettier status when linting
Browse files Browse the repository at this point in the history
We want to ensure that all code conforms to prettier.

Ideally contributors will have the prettier plugin for their editor to
autoformat-on-save and they won't have to do anything manually.

Also, remove eslint-prettier plugin since it's not being used anymore.
  • Loading branch information
Graham42 committed Oct 29, 2017
1 parent deda513 commit bb6cdc9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
"no-plusplus": 0
},
"plugins": [
"prettier",
"react"
],
"extends": ["plugin:react/recommended"]
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"babel-preset-stage-0": "^6.3.13",
"css-loader": "^0.23.1",
"eslint": "^3.14.1",
"eslint-plugin-prettier": "^2.3.1",
"eslint-plugin-react": "^7.4.0",
"font-awesome-webpack": "0.0.4",
"jasmine-core": "^2.4.1",
Expand Down Expand Up @@ -68,7 +67,7 @@
"start": "node server.js",
"build":
"BABEL_ENV=production webpack --config webpack.config.production.js && node pre-render.js",
"lint": "eslint .",
"lint": "eslint . && prettier --list-different '**/*.{js,jsx,ts,css,less,scss,json}'",
"test": "karma start --single-run --browsers PhantomJS",
"pretty": "prettier --write '**/*.{js,jsx,ts,css,less,scss,json}'"
}
Expand Down

0 comments on commit bb6cdc9

Please sign in to comment.