https://github.com/fraction/common-lint
https://github.com/fraction/common-lint
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fraction/common-lint
- Owner: fraction
- Created: 2019-09-19T16:00:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-12T14:10:39.000Z (over 4 years ago)
- Last Synced: 2025-02-23T06:03:34.734Z (over 1 year ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# common-lint
> compatibility for both standard and eslint
## Usage
Use `common-lint` or `clint` from the command-line or your linter settings.
### ESLint
By default, this module passes through to `eslint`.
```console
$ common-lint
/home/alice/foo/index.js
31:41 error 'val' is defined but never used no-unused-vars
✖ 1 problem (1 error, 0 warnings)
```
### StandardJS
If `standard` is found in your `package.json`, this module uses that instead.
```console
$ common-lint
standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run `standard --fix` to automatically fix some problems.
/home/alice/bar/index.js:59:27: Extra semicolon.
```
## Installation
With [npm](https://npmjs.org/):
```shell
npm -g install common-lint
```
With [yarn](https://yarnpkg.com/en/):
```shell
yarn global add common-lint
```
## License
AGPL-3.0