1.0.18 • Published 2 months ago

million-lint-check v1.0.18

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

How?

It works by doing the following things - 1. Detects package manager and does local setup using @antfu/ni 3. Runs @million/lint 4. Randomly interacts (fuzzes) with the frontend and detects Million Lint suggestions in the shadow DOM using puppeteer

Installation

  • Run npx million-lint-check@latest setup $PORT, where $PORT is the port your frontend will run on in development.

Note

  • For some projects setup will have to be done manually. Once the project is at a state where a simple npm run dev is sufficient to run it, this tool can be used.
  • This only works with VSCode
  • I've only tested this on the project below ;_; (should work for all nr dev projects)

Example

We'll test the CLI on crnsh/github-h-index as an example 1. git clone https://github.com/crnsh/github-h-index.git 2. cd github-h-index 2. code . (This is temporarily necessary) 3. npx million-lint-check@latest setup 3000

Running development server...
Development server started in the background.
Opening browser and interacting with components...

> github_h-index@0.1.0 dev
> next dev

   ▲ Next.js 14.1.1
   - Local:        http://localhost:3000


 ⚡ Million Lint v0.0.66
 ✓ Ready in 0.18ms
 ✓ Ready in 2.2s
 ○ Compiling / ...
 ✓ Compiled / in 1158ms (380 modules)
 ✓ Compiled in 180ms (380 modules)
Successfully connected to http://localhost:3000 after 1 attempt(s).
Randomly interacting with page...
Finding element...
Million Lint is working as expected!

Shutting down development server...
1.0.18

2 months ago

1.0.17

2 months ago

1.0.16

2 months ago

1.0.9

2 months ago

1.0.11

2 months ago

1.0.10

2 months ago

1.0.15

2 months ago

1.0.14

2 months ago

1.0.13

2 months ago

1.0.12

2 months ago

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

2 months ago

1.0.5

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago