add file glob to prettier config

This commit is contained in:
Mike Rodarte 2025-03-11 00:00:39 -04:00
parent ee94db5e83
commit 95fa3112a3
No known key found for this signature in database
GPG key ID: 32DCD8C789A592CC
2 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,7 @@ jobs:
run: npm install
- name: Run Prettier
run: npx prettier --check
run: npm run prettier
- name: Lint code
run: npm run lint

View file

@ -11,8 +11,9 @@
"build": "rollup -c",
"dev": "npm run build && obsidian --dev",
"watch": "rollup -c --watch",
"prettier": "npx prettier --check \"src/**/*.{js,ts,jsx,tsx}\"",
"pretty-fix": "npx prettier src --write",
"lint": "eslint . --ext .js,.ts",
"lint": "eslint . --ext \"src/**/*.{js,ts,jsx,tsx}\"",
"lint-fix": "eslint . --ext .js,.ts --fix",
"test": "jest",
"coverage": "npx jest --coverage"