diff --git a/package.json b/package.json index 54a5ba193f..d5f66a7110 100644 --- a/package.json +++ b/package.json @@ -46,34 +46,11 @@ "test": "npm run ws -- test", "lint:license": "npm run -w @prosopo/scripts license", "lint-fix:license": "npm run -w @prosopo/scripts license:fix", - "lint:dockerfile": "find . \\( -name 'Dockerfile' -o -name '*.dockerfile' \\) ! -path '*/node_modules/*' | xargs -P 1 --verbose -I {} bash -c 'docker run --rm -i hadolint/hadolint < {} || exit 255'", - "lint_disabled_:actions": "docker run --rm -v $(pwd):/repo --workdir /repo rhysd/actionlint:latest -color", - "lint:shell": "find . -name '*.sh' ! -path '*/node_modules/*' | xargs -P 1 --verbose -I {} bash -c \"shellcheck {} || exit 255\"", - "lint-py:check": "ruff check .", - "lint-py:format": "ruff format --check --diff .", - "lint:py": "run-s lint-py:*", - "lint-fix-py:check": "ruff check --fix --unsafe-fixes .", - "lint-fix-py:format": "ruff format .", - "lint-fix:py": "run-s lint-fix-py:*", "lint:js": "biome check .", "lint-fix:js": "npm run --silent lint:js -- --fix --unsafe", - "lint:html": "htmlhint '**/*.{html,svg}' --config htmlhint.json", - "lint:md": "markdownlint '**/*.md' --ignore-path .gitignore", - "lint-fix:md": "npm run --silent lint:md -- --fix", "lint": "run-s lint:*", "lint-fix": "run-s lint-fix:*", "docker:rust": "f() { if [ \"$CI\" = \"true\" ]; then FLAGS=''; else FLAGS='-it'; fi ; mkdir -p node_modules/cargo-cache && docker run --rm $FLAGS -u $(id -u):$(id -g) --cpu-quota=-1 -v $PWD:/src -v $PWD/node_modules/cargo-cache:/usr/local/cargo/registry prosopo/cargo-contract:4.1.1 \"export RUST_BACKTRACE=1; $@\" ;}; f", - "lint-rs:clippy": "npm run --silent docker:rust -- 'find . -name \"Cargo.toml\" ! -path '*/node_modules/*' | xargs -P 1 --verbose -I {} bash -c \"cargo clippy --manifest-path {} -- -D warnings -A clippy::too_many_arguments || exit 255\"'", - "lint-rs:check": "npm run --silent docker:rust -- 'find . -name \"Cargo.toml\" ! -path '*/node_modules/*' | xargs -P 1 --verbose -I {} bash -c \"cargo check --manifest-path {} || exit 255\"'", - "lint-rs:fmt": "npm run --silent docker:rust -- 'find . -name \"Cargo.toml\" ! -path '*/node_modules/*' | xargs -P 1 --verbose -I {} bash -c \"cargo fmt --check --manifest-path {} || exit 255\"'", - "lint:rs": "run-s lint-rs:fmt lint-rs:clippy lint-rs:check", - "lint-fix-rs:fmt": "npm run --silent docker:rust -- 'find . -name \"Cargo.toml\" ! -path '*/node_modules/*' | xargs -P 1 --verbose -I {} bash -c \"cargo fmt --manifest-path {} || exit 255\"'", - "lint-fix-rs:clippy": "npm run --silent docker:rust -- 'find . -name \"Cargo.toml\" ! -path '*/node_modules/*' | xargs -P 1 --verbose -I {} bash -c \"cargo clippy --manifest-path {} --fix --allow-dirty -- -D warnings -A clippy::too_many_arguments || exit 255\"'", - "lint-fix:rs": "run-s lint-fix-rs:fmt lint-fix-rs:clippy", - "lint-toml:lint": "npx taplo lint", - "lint-toml:format": "npx taplo format --check", - "lint:toml": "run-s lint-toml:*", - "lint-fix:toml": "npx taplo format", "lint-changed:js": "npm run --silent lint:js -- --changed", "lint-changed-fix:js": "npm run --silent lint-fix:js -- --changed", "removePolkadotJSWarnings": "sed -i 's/console.warn\\(.*\\);//g' ./node_modules/@polkadot/util/versionDetect.js && sed -i 's/console.warn\\(.*\\);//g' ./node_modules/@polkadot/util/cjs/versionDetect.js || true",