prettylint

2.0.0 • Public • Published

prettylint

npm build

Run Prettier as a linter

Changelog

Sample

$ prettylint "**/*.ts"

  src/diagnose.ts:14:13
  ⚠  14:13  Delete ·                                          prettier/prettier
  ⚠  15:14  Insert ·                                          prettier/prettier
  ⚠  47:34  Replace "" with ''                                prettier/prettier

  3 warnings

Install

npm install prettylint

Usage

Usage
  $ prettylint [options] [file/dir/glob ...]

Options
  --no-config           Do not load config file.
  --config <path>       Specify the config file.
  --no-editorconfig     Do not load .editorconfig
  --fix                 Fix linting errors.
  --format <path>       Specify the module to format output.
                        Defaults to "eslint-formatter-pretty".
  --ignore-path <path>  Specify the .ignore file.
                        Defaults to [".gitignore", ".prettierignore"].
  --silent              Do not print message.
  --with-node-modules   Process files inside 'node_modules' directory.
  -h, --help            Show help.
  -v, --version         Show version.

Examples
  $ prettylint .
  $ prettylint . --fix

Development

# lint
pnpm run lint

# build
pnpm run build

# test
pnpm run test

License

MIT © Ika

Dependents (2)

Package Sidebar

Install

npm i prettylint

Weekly Downloads

2,466

Version

2.0.0

License

MIT

Unpacked Size

27.1 kB

Total Files

26

Last publish

Collaborators

  • ikatyang