Added a pre-commit hook that runs AGLint and validates filters.

Also, updated the documentation to explain how to set up the
repo properly.
This commit is contained in:
Andrey Meshkov
2023-04-25 11:11:41 +03:00
parent d4760ee2c8
commit 39ed2ef297
5 changed files with 242 additions and 122 deletions

View File

@@ -12,9 +12,11 @@
},
"homepage": "https://github.com/AdguardTeam/AdguardFilters#readme",
"scripts": {
"lint": "aglint"
"lint": "aglint",
"prepare": "husky install"
},
"devDependencies": {
"@adguard/aglint": "1.0.11"
"@adguard/aglint": "1.0.11",
"husky": "^8.0.3"
}
}
}