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:
parent
aff9e24775
commit
9586ac8933
|
@ -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"
|
||||
|
|
|
@ -17,5 +17,4 @@
|
|||
set -e
|
||||
|
||||
eslint --max-warnings 0 src
|
||||
prettier --single-quote --list-different 'src/**/*.js'
|
||||
./bin/verify-languages.js
|
||||
|
|
Loading…
Reference in New Issue