Skip to content
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.

Commit

Permalink
Change prettier configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kobanyan committed Mar 11, 2018
1 parent 476e321 commit c028679
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 15 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package.json
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
printWidth: 120
singleQuote: true
trailingComma: es5
49 changes: 34 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@
"bugs": {
"url": "https://github.com/kobanyan/ts-react-chrome-extension-boilerplate/issues"
},
"keywords": ["boilerplate", "chrome", "extension", "react", "typescript", "webpack"],
"keywords": [
"boilerplate",
"chrome",
"extension",
"react",
"typescript",
"webpack"
],
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0"
Expand Down Expand Up @@ -68,12 +75,12 @@
"webpack": "^3.8.1"
},
"scripts": {
"start": "ts-node ./scripts/dev.ts",
"test-watch": "jest --watch --testRegex '\\.test\\.tsx?$'",
"dev": "npm-run-all --parallel start test-watch",
"e2e": "jest --testRegex '\\.spec\\.tsx?$'",
"prod": "ts-node ./scripts/prod.ts",
"start": "ts-node ./scripts/dev.ts",
"test": "jest --collectCoverage --testRegex '\\.test\\.tsx?$'",
"e2e": "jest --testRegex '\\.spec\\.tsx?$'"
"test-watch": "jest --watch --testRegex '\\.test\\.tsx?$'"
},
"license": "MIT",
"husky": {
Expand All @@ -82,20 +89,32 @@
}
},
"jest": {
"collectCoverageFrom": [
"src/**/*.ts?(x)"
],
"coveragePathIgnorePatterns": [
"/__tests__/"
],
"moduleFileExtensions": [
"js",
"json",
"jsx",
"node",
"ts",
"tsx"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"collectCoverageFrom": ["src/**/*.ts?(x)"],
"coveragePathIgnorePatterns": ["/__tests__/"]
}
},
"lint-staged": {
"*.{ts,tsx}": ["prettier --parser typescript --write", "git add"],
"*.json": ["prettier --parser json --write", "git add"]
},
"prettier": {
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5"
"*.{ts,tsx}": [
"prettier --parser typescript --write",
"git add"
],
"*.json": [
"prettier --parser json --write",
"git add"
]
}
}

0 comments on commit c028679

Please sign in to comment.