https://github.com/ikatyang/prettylint
Run Prettier as a linter
https://github.com/ikatyang/prettylint
linter prettier
Last synced: about 1 year ago
JSON representation
Run Prettier as a linter
- Host: GitHub
- URL: https://github.com/ikatyang/prettylint
- Owner: ikatyang
- License: mit
- Created: 2017-10-19T11:31:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T00:28:02.000Z (over 2 years ago)
- Last Synced: 2025-04-10T22:04:44.217Z (about 1 year ago)
- Topics: linter, prettier
- Language: TypeScript
- Size: 298 KB
- Stars: 43
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# prettylint
[](https://www.npmjs.com/package/prettylint)
[](https://github.com/ikatyang/prettylint/actions?query=branch%3Amaster)
Run Prettier as a linter
[Changelog](https://github.com/ikatyang/prettylint/blob/master/CHANGELOG.md)
## 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
```sh
npm install prettylint
```
## Usage
```sh
Usage
$ prettylint [options] [file/dir/glob ...]
Options
--no-config Do not load config file.
--config Specify the config file.
--no-editorconfig Do not load .editorconfig
--fix Fix linting errors.
--format Specify the module to format output.
Defaults to "eslint-formatter-pretty".
--ignore-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
```sh
# lint
pnpm run lint
# build
pnpm run build
# test
pnpm run test
```
## License
MIT © [Ika](https://github.com/ikatyang)