Add eslint integration

See https://github.com/lipis/prettier-setup

Change-Id: I5479e2502cdab35addfe38f889801e7d4f21fb42
This commit is contained in:
Manuel Stahl 2020-02-11 10:51:16 +01:00
parent 769159249f
commit 765aa66188
2 changed files with 43 additions and 2 deletions

View file

@ -14,6 +14,9 @@
"@testing-library/user-event": "^8.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"prettier": "^1.19.1"
},
"dependencies": {
@ -27,7 +30,14 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"fix:other": "yarn prettier --write",
"fix:code": "yarn test:lint --fix",
"fix": "yarn fix:code && yarn fix:other",
"prettier": "prettier \"**/*.{json,md,scss,yaml,yml}\"",
"test:code": "react-scripts test",
"test:lint": "eslint --ignore-path .gitignore --ext .js,.jsx .",
"test:style": "yarn prettier --list-different",
"test": "yarn test:style && yarn test:lint && yarn test:code",
"eject": "react-scripts eject"
},
"eslintConfig": {