Skip to content

Commit

Permalink
nicer lint output. compat with lit SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Feb 14, 2024
1 parent e4cda02 commit 78d7fae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ module.exports = {
'^https://av.prod.archive.org/js/util/strings.js$',
'^https://raw.githubusercontent.com/internetarchive/dyno/main/test/test.js$',
'^https://gitlab.com/internetarchive/eslint/-/raw/main/test/test.js$',
// for lit SSR:
'^npm:lit$',
'^npm:@lit-labs/ssr',
],
}],

Expand Down
5 changes: 4 additions & 1 deletion lint
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ npx eslint -c .eslint.await.finder.cjs "$ARGS" \
|egrep -B1 floating-promises \
|tee .proms

npx tslint --type-check -p tsconfig.json 2>&1 \
npx tslint --type-check -p tsconfig.json "$ARGS" 2>&1 \
|fgrep -v www/jw/8/jwplayer.js \
|fgrep Promise \
|fgrep roperty \
Expand All @@ -43,3 +43,6 @@ if [ -s .proms ]; then
echo "promises made, promises broken"
exit 1
fi

set +x
echo LINT SUCCESS

0 comments on commit 78d7fae

Please sign in to comment.