Skip to content

Configure eslint #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ci/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -e

docker-compose up -d
helm lint api/helm/api/
sleep 20
Expand All @@ -13,7 +15,8 @@ docker-compose exec php bin/console doctrine:schema:drop --env=test --force
docker-compose exec php bin/console cache:warmup --env=test
docker-compose exec php bin/behat --format=progress
docker-compose exec client yarn install --pure-lockfile
docker-compose exec client yarn jest --ci --reporters=default --reporters=jest-junit
docker-compose exec client yarn jest --ci --reporters=default --reporters=jest-junit --passWithNoTests
docker-compose exec client yarn eslint src
curl -s http://localhost # Client
curl -s http://localhost:81 # Admin
curl -s http://localhost:8080 # API
Expand Down
3 changes: 3 additions & 0 deletions client/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "react-app"
}
12 changes: 9 additions & 3 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
},
"devDependencies": {
"jest-junit": "^5.2.0",
"react-scripts": "1.1.4"
"react-scripts": "^2.0.3"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"jest": {
Expand All @@ -34,5 +34,11 @@
"/node_modules/",
"/features"
]
}
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
Loading