From 390fad597ada9bf16977244dd643ed42bca53420 Mon Sep 17 00:00:00 2001 From: bluwy Date: Wed, 16 Aug 2023 15:43:15 +0800 Subject: [PATCH] Update docs --- site/index.html | 62 ++++++++++++++--------------- site/src/components/Analysis.svelte | 2 +- site/src/global.css | 5 +++ site/src/pages/Home.svelte | 2 +- site/unocss.config.js | 5 ++- 5 files changed, 39 insertions(+), 37 deletions(-) diff --git a/site/index.html b/site/index.html index 410a44c..8f022fd 100644 --- a/site/index.html +++ b/site/index.html @@ -11,7 +11,7 @@

What is publint?

- publint lints npm packages for packaging errors, - ensuring maximum compatibility across environments. This means that - consumers of your package can safely run your code in any platform, - e.g. Vite, Webpack, Rollup, Node.js, etc. + publint lints npm packages to ensure widest + compatibility across environments, such as Vite, Webpack, Rollup, + Node.js, etc.

- A full list of rules can be found at the - rules page - . + A full list of lint rules can be found at the + rules page.

How it works

- When linting an npm package, the site downloads the package tarball - locally from the npm registry, then a web worker will run the - publint CLI against the files. For larger packages, it - may take a while to download and lint. -

-

- Unlike npm install, the site would only download the - package itself without it's dependencies, as that's sufficient for - the linting process. + When linting an npm package, the site downloads the tarball from the + npm registry, and runs publint against it in a web + worker. For larger packages, it may take a while to download and + lint.

@@ -50,24 +43,27 @@

How it works

>

Use locally

-

- In the root of your library directory, run - npx publint! If you're an end-user and would like to - lint the dependencies you use instead, run - npx publint deps. Use - npx publint --help to see the full list of options. -

+
    +
  • + Run npx publint in your library directory to lint + locally. +
  • +
  • Run npx publint --deps to lint dependencies.
  • +
  • Run npx publint --help for the full list of options.
  • +
-

Other tools

-

- - Are the types wrong? - -

+

Other resources

+