Skip to content

Commit

Permalink
feat: add prettier
Browse files Browse the repository at this point in the history
Add prettier to the project
- add `yarn pretty` command
- add `yarn pretty:fix` command

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
  • Loading branch information
niloysikdar committed Jun 17, 2022
1 parent cab10b5 commit 1de855a
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 39 deletions.
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
public/
build/
dist/
docs/
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"endOfLine": "lf"
}
88 changes: 49 additions & 39 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,49 @@
{
"name": "@leopardslab/react-email",
"version": "0.0.1",
"private": "false",
"description": "React-based component and utility methods-based lightweight library to provide a common interface for email building",
"author": {
"name": "Leopards Lab",
"url": "https://github.com/leopardslab"
},
"repository": {
"type": "git",
"url": "https://github.com/leopardslab/react-email.git"
},
"bugs": {
"url": "https://github.com/leopardslab/react-email/issues"
},
"homepage": "https://github.com/leopardslab/react-email#readme",
"license": "Apache License 2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"watch": "tsc --watch"
},
"devDependencies": {
"typescript": "^4.7.3"
},
"keywords": [
"react",
"react-package",
"react-email",
"email-builder",
"react-email-builder",
"html-email"
]
}
{
"name": "@leopardslab/react-email",
"version": "0.0.1",
"private": "false",
"description": "React-based component and utility methods-based lightweight library to provide a common interface for email building",
"author": {
"name": "Leopards Lab",
"url": "https://github.com/leopardslab"
},
"repository": {
"type": "git",
"url": "https://github.com/leopardslab/react-email.git"
},
"bugs": {
"url": "https://github.com/leopardslab/react-email/issues"
},
"homepage": "https://github.com/leopardslab/react-email#readme",
"license": "Apache License 2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "tsc -p tsconfig.json",
"watch": "tsc --watch",
"pretty": "prettier --check .",
"pretty:fix": "prettier --write ."
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"eslint": "^8.17.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.2",
"prettier": "^2.7.1",
"typescript": "^4.7.3"
},
"keywords": [
"react",
"react-package",
"react-email",
"email-builder",
"react-email-builder",
"html-email"
]
}

0 comments on commit 1de855a

Please sign in to comment.