mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
chore: lint-language output only warnings and errors (#94261)
The lint-language script is too verbose, it prints "no issues found" for all files it touches.
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@
|
||||
"check-unused-turbo-tasks": "node scripts/check-unused-turbo-tasks.mjs",
|
||||
"lint": "run-p test-types lint-typescript prettier-check \"lint-eslint .\" lint-ast-grep lint-language check-unused-turbo-tasks",
|
||||
"lint-fix": "pnpm prettier-fix && pnpm lint-eslint --fix .",
|
||||
"lint-language": "alex .",
|
||||
"lint-language": "alex . --quiet",
|
||||
"prettier-check": "prettier --check .",
|
||||
"check-examples": "./scripts/check-examples.sh",
|
||||
"get-test-timings": "node run-tests.js --timings --write-timings -g 1/1",
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
|
||||
for folder in examples/* ; do
|
||||
if [ -f "$folder/package.json" ]; then
|
||||
cat $folder/package.json | jq '
|
||||
tmp=$(mktemp)
|
||||
jq '
|
||||
.private = true |
|
||||
del(.license, .version, .name, .author, .description)
|
||||
' | sponge $folder/package.json
|
||||
' "$folder/package.json" > "$tmp" && cat "$tmp" > "$folder/package.json"
|
||||
rm -f "$tmp"
|
||||
fi
|
||||
if [ -f "$folder/tsconfig.json" ]; then
|
||||
if [ -d "$folder/app" ] || [ -d "$folder/src/app" ]; then
|
||||
|
||||
Reference in New Issue
Block a user