Add prettier
This commit is contained in:
parent
5f21ad9377
commit
1afa51959f
1
Makefile
1
Makefile
|
|
@ -30,6 +30,7 @@ check-go:
|
||||||
|
|
||||||
check-js:
|
check-js:
|
||||||
(cd ui && npm run lint)
|
(cd ui && npm run lint)
|
||||||
|
(cd ui && npm run testformat)
|
||||||
|
|
||||||
download-tools:
|
download-tools:
|
||||||
go get github.com/golang/lint/golint
|
go get github.com/golang/lint/golint
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
"printWidth": 100,
|
||||||
|
"tabWidth": 4,
|
||||||
|
"useTabs": false,
|
||||||
|
"semi": true,
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"bracketSpacing": false,
|
||||||
|
"jsxBracketSameLine": true,
|
||||||
|
"arrowParens": "always",
|
||||||
|
"parser": "typescript"
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -26,18 +26,21 @@
|
||||||
"test": "react-scripts-ts test --env=jsdom",
|
"test": "react-scripts-ts test --env=jsdom",
|
||||||
"eject": "react-scripts-ts eject",
|
"eject": "react-scripts-ts eject",
|
||||||
"lint": "tslint --project .",
|
"lint": "tslint --project .",
|
||||||
"lintfix": "tslint --fix --project ."
|
"lintfix": "tslint --fix --project .",
|
||||||
|
"format": "prettier src/**/*.{ts,tsx} --write",
|
||||||
|
"testformat": "prettier src/**/*.{ts,tsx} --list-different"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/notifyjs": "^1.2.30",
|
|
||||||
"@types/detect-browser": "^2.0.1",
|
"@types/detect-browser": "^2.0.1",
|
||||||
"@types/flux": "^3.1.7",
|
"@types/flux": "^3.1.7",
|
||||||
"@types/jest": "^22.2.3",
|
"@types/jest": "^22.2.3",
|
||||||
"@types/node": "^9.6.5",
|
"@types/node": "^9.6.5",
|
||||||
|
"@types/notifyjs": "^1.2.30",
|
||||||
"@types/react": "^16.3.11",
|
"@types/react": "^16.3.11",
|
||||||
"@types/react-dom": "^16.0.5",
|
"@types/react-dom": "^16.0.5",
|
||||||
"@types/react-list": "^0.8.3",
|
"@types/react-list": "^0.8.3",
|
||||||
"@types/react-router-dom": "^4.2.6",
|
"@types/react-router-dom": "^4.2.6",
|
||||||
|
"prettier": "^1.14.2",
|
||||||
"typescript": "^2.8.1"
|
"typescript": "^2.8.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue