Added prettier to devs and codegen

This commit is contained in:
Luis Alvarez 2020-10-01 20:38:40 -05:00
parent 390b2c3303
commit 2314ad760a
6 changed files with 2014 additions and 1196 deletions

2
.prettierignore Normal file
View File

@ -0,0 +1,2 @@
node_modules
.next

View File

@ -20,5 +20,8 @@
"./lib/bigcommerce/schema.graphql": {
"plugins": ["schema-ast"]
}
},
"hooks": {
"afterAllFileWrite": ["prettier --write"]
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -12,6 +12,10 @@
"schema": "lib/bigcommerce/schema.graphql",
"documents": "lib/bigcommerce/**/*.{graphql,js,ts,jsx,tsx}"
},
"prettier": {
"semi": false,
"singleQuote": true
},
"dependencies": {
"@tailwindcss/ui": "^0.6.2",
"@types/classnames": "^2.2.10",
@ -33,6 +37,7 @@
"graphql": "^15.3.0",
"postcss-flexbugs-fixes": "^4.2.1",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.1.2",
"tailwindcss": "^1.8.10",
"typescript": "^4.0.3"
},

View File

@ -5919,6 +5919,11 @@ prepend-http@^2.0.0:
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
prettier@^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.1.2.tgz#3050700dae2e4c8b67c4c3f666cdb8af405e1ce5"
integrity sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==
pretty-hrtime@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz#b7e3ea42435a4c9b2759d99e0f201eb195802ee1"