Improve eslint configuration with prettier

This commit is contained in:
Luiz Baldi
2019-10-28 22:18:37 -03:00
parent 6010eab067
commit 8ea2b4a46b
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
module.exports = {
extends: ['airbnb', 'prettier'],
extends: ['airbnb', 'plugin:prettier/recommended', 'prettier/react'],
parser: 'babel-eslint',
plugins: ['prettier'],
plugins: ['react', 'prettier'],
env: {
browser: true,
es6: true,

View File

@@ -32,7 +32,7 @@
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint src",
"lint": "eslint src --ext .js",
"lint:fix": "npm run lint -- --fix"
},
"peerDependencies": {