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
Atul Varma 2021-06-08 12:40:41 -04:00 zatwierdzone przez GitHub
rodzic b68bc9726f
commit 7af19de6c0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -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) {

Wyświetl plik

@ -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",