Skip to content

Commit

Permalink
Merge pull request #9 from StudyTube/remove-js-lint
Browse files Browse the repository at this point in the history
remove js files from linter
  • Loading branch information
bolelamx authored Nov 1, 2021
2 parents eae8172 + e56cb6c commit fe5faf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hooks/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ filestoprettify="$tsfiles $htmlfiles"
# TODO: Add *.html after migrating to eslint.
# (on TSLint it leads to "is not included in project" error in some cases)
#
appScriptsToLint=$(git diff --cached --name-only --diff-filter=d | grep -E '^(src|projects)\/\S*\.(ts|js)$' || true)
e2eScriptsToLint=$(git diff --cached --name-only --diff-filter=d | grep -E '^e2e\/\S*\.(ts|js)$' || true)
appScriptsToLint=$(git diff --cached --name-only --diff-filter=d | grep -E '^(src|projects)\/\S*\.ts$' || true)
e2eScriptsToLint=$(git diff --cached --name-only --diff-filter=d | grep -E '^e2e\/\S*\.ts$' || true)
stylesToLint=$(git diff --cached --name-only --diff-filter=d | grep -E '\.(scss|css)$' || true)

# TODO: Ideally, we want to lint only staged changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-git-hooks",
"version": "1.0.9",
"version": "1.0.10",
"description": "Storage for git hooks used in Studytube's Angular apps.",
"author": "",
"license": "ISC"
Expand Down

0 comments on commit fe5faf2

Please sign in to comment.