test: use .gitignore in ESLint (#112)

* test(eslint): use `.gitignore` to ignore files

* test(eslint): ignore `main` directory from checking
This commit is contained in:
Alfi Maulana
2023-12-12 11:52:14 +07:00
committed by GitHub
parent 61dd4011c7
commit 8885aea737
2 changed files with 2 additions and 1 deletions

View File

@@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"bundle": "tsc && ncc build dist/main.mjs -o main",
"check": "prettier --write . !main !README.md && eslint src package.json",
"check": "prettier --write . !main !README.md && eslint --ignore-path .gitignore .",
"test": "tsc && jest"
},
"dependencies": {