Skip to content

Commit

Permalink
Merge pull request #6 from vtex-apps/chore/update-tooling
Browse files Browse the repository at this point in the history
Update tooling setup
  • Loading branch information
wender authored Jun 5, 2020
2 parents eecb863 + 867eec8 commit 3b9c217
Show file tree
Hide file tree
Showing 9 changed files with 2,193 additions and 923 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
coverage/
*.snap.ts
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "vtex",
"root": true,
"env": {
"node": true,
"es6": true,
"jest": true
}
}
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@vtex/prettier-config"
33 changes: 33 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "wish-list",
"private": true,
"license": "UNLICENSED",
"scripts": {
"lint": "eslint --ext js,jsx,ts,tsx .",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json}\""
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js,tsx,jsx}": [
"eslint --fix",
"prettier --write"
],
"*.{json,graphql,gql}": [
"prettier --write"
]
},
"devDependencies": {
"@vtex/prettier-config": "^0.1.3",
"eslint": "^6.8.0",
"eslint-config-vtex": "^12.2.1",
"eslint-config-vtex-react": "^6.2.1",
"husky": "^4.2.0",
"lint-staged": "^10.0.2",
"prettier": "^1.19.1",
"typescript": "^3.7.5"
}
}
4 changes: 2 additions & 2 deletions react/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "vtex-react",
"extends": "vtex-react/io",
"env": {
"browser": true,
"es6": true,
"jest": true
}
}
}
6 changes: 0 additions & 6 deletions react/.prettierrc

This file was deleted.

13 changes: 4 additions & 9 deletions react/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "wishlist-react",
"scripts": {
"test": "vtex-test-tools test",
"lint": "tsc --noEmit && eslint --ext ts,tsx ."
"test": "vtex-test-tools test"
},
"dependencies": {
"@vtex/css-handles": "^1.0.0",
"classnames": "^2.2.6",
"react-dom": "^16.9.2",
"ramda": "^0.27.0",
"react-apollo": "^3.1.3",
"lodash": "^4.17.15",
"react-dom": "^16.9.2",
"react-intl": "3.9.1"
},
"devDependencies": {
Expand All @@ -18,13 +17,9 @@
"@types/react": "^16.9.2",
"@vtex/test-tools": "^1.1.0",
"apollo-client": "^2.5.1",
"graphql": "^14.6.0",
"react": "^16.9.2",
"react-apollo": "^3.1.3",
"eslint": "^6.8.0",
"eslint-config-vtex-react": "^6.1.1",
"graphql": "^14.6.0",
"prettier": "^1.18.2",
"tslint-eslint-rules": "^5.4.0",
"typescript": "3.8.3"
},
"version": "0.1.3"
Expand Down
Loading

0 comments on commit 3b9c217

Please sign in to comment.