generated from vtex-apps/react-app-template
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from vtex-apps/patch/update-lint
Fix lint problems + Fix tests
- Loading branch information
Showing
24 changed files
with
2,667 additions
and
2,062 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules/ | ||
coverage/ | ||
*.snap.ts | ||
*__mocks__* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"jsxBracketSameLine": true | ||
} | ||
"@vtex/prettier-config" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,33 @@ | ||
{ | ||
"version": "0.0.0", | ||
"devDependencies": { | ||
"@vtex/intl-equalizer": "^2.3.0", | ||
"husky": "^2.4.1" | ||
}, | ||
"name": "store-form", | ||
"private": true, | ||
"license": "UNLICENSED", | ||
"scripts": { | ||
"lint": "cd ./react && yarn lint", | ||
"test": "cd ./react && yarn test --passWithNoTests", | ||
"lint:locales": "intl-equalizer", | ||
"locales:fix": "intl-equalizer --fix", | ||
"verify": "yarn lint && yarn lint:locales && yarn test" | ||
"lint": "eslint --ext js,jsx,ts,tsx .", | ||
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json}\"" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "yarn lint && yarn lint:locales && yarn locales:fix", | ||
"pre-push": "yarn verify" | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"intl-equalizer": { | ||
"referenceLocale": "en", | ||
"localeDirectory": "messages" | ||
"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.8.3" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
/* eslint-disable no-undef */ | ||
require('mutationobserver-shim') | ||
|
||
window.matchMedia = | ||
window.matchMedia || | ||
function matchMedia() { | ||
return { | ||
matches: false, | ||
addListener() {}, | ||
removeListener() {}, | ||
} | ||
} |
Oops, something went wrong.