Actually check TSX files with Prettier. (#159)
This makes us actually check TSX files with Prettier (until now we were only checking TS files). It also re-runs Prettier, although apparently it fixes something in a TS file that was raising a warning, which I find very odd--since TS files were already being checked, I'm not sure how we didn't have a broken build...pull/160/head
rodzic
b68bc9726f
commit
7af19de6c0
|
@ -57,7 +57,10 @@ export type SvgSymbolMetadata = SvgSymbolMetadataBooleans & {
|
|||
|
||||
export function validateSvgSymbolMetadata(
|
||||
obj: any
|
||||
): { metadata: SvgSymbolMetadata; unknownProperties: string[] } {
|
||||
): {
|
||||
metadata: SvgSymbolMetadata;
|
||||
unknownProperties: string[];
|
||||
} {
|
||||
const metadata: SvgSymbolMetadata = {};
|
||||
const unknownProperties: string[] = [];
|
||||
for (let key in obj) {
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"deploy": "npm run build && gh-pages -d dist",
|
||||
"prettier:check": "prettier --check lib/**/*.ts lib/**/*.ts",
|
||||
"prettier:fix": "prettier --write lib/**/*.ts lib/**/*.ts",
|
||||
"prettier:check": "prettier --check lib/**/*.ts lib/**/*.tsx",
|
||||
"prettier:fix": "prettier --write lib/**/*.ts lib/**/*.tsx",
|
||||
"typecheck": "tsc --noemit",
|
||||
"eslint": "eslint lib --ext .ts,.tsx --max-warnings 1",
|
||||
"lint": "npm run prettier:check && npm run typecheck && npm run eslint",
|
||||
|
|
Ładowanie…
Reference in New Issue