Use eslint-plugin-prettier when linting

Instead of using the hacky `prettier` command, add a new rule to eslintrc to
accomplish the same thing.  This improves error reporting.

Change-Id: If37f39b45bf4e4246fa73c3b4f130f5a10fb86d9
This commit is contained in:
Honza Pokorny 2017-07-14 13:11:41 -03:00
parent aff9e24775
commit 9586ac8933
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@
"no-unneeded-ternary": 1,
"no-unused-vars": [1, {"vars": "local", "args": "none"}],
"radix": 0,
"prettier/prettier": ["error", {"singleQuote": true}],
"react/jsx-boolean-value": [1, "never"],
"react/jsx-no-duplicate-props": 1,
"react/jsx-no-undef": 1,
@ -45,6 +46,7 @@
"experimentalObjectRestSpread": true
},
"plugins": [
"prettier",
"react"
],
"parser": "babel-eslint"

View File

@ -17,5 +17,4 @@
set -e
eslint --max-warnings 0 src
prettier --single-quote --list-different 'src/**/*.js'
./bin/verify-languages.js