Add test files to prettier and lint commands

This commit is contained in:
Shivam Mathur 2022-01-29 05:39:57 +05:30
parent cad2a1bda3
commit 96857323bb
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -16,9 +16,9 @@
], ],
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"lint": "eslint **/src/*.ts --cache --fix", "lint": "eslint **/src/*.ts **/__tests__/*.ts --cache --fix",
"format": "prettier --write **/src/*.ts && git add -f src/", "format": "prettier --write **/src/*.ts **/__tests__/*.ts && git add -f src/",
"format-check": "prettier --check **/src/*.ts", "format-check": "prettier --check **/src/*.ts **/__tests__/*.ts",
"release": "ncc build -o dist && git add -f dist/", "release": "ncc build -o dist && git add -f dist/",
"test": "jest" "test": "jest"
}, },