All Projects → npm → lint

npm / lint

Licence: ISC License
lint the npmcli way

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to lint

proggy
Progress bar updates at a distance
Stars: ✭ 12 (-55.56%)
Mutual labels:  npm-cli
pacote
npm fetcher
Stars: ✭ 179 (+562.96%)
Mutual labels:  npm-cli
parse-conflict-json
Parse a JSON string that has git merge conflicts, resolving if possible
Stars: ✭ 24 (-11.11%)
Mutual labels:  npm-cli
libnpmpublish
programmatically publish and unpublish npm packages
Stars: ✭ 44 (+62.96%)
Mutual labels:  npm-cli
config
Configuration management for https://github.com/npm/cli
Stars: ✭ 22 (-18.52%)
Mutual labels:  npm-cli
cacache
npm's content-addressable cache
Stars: ✭ 181 (+570.37%)
Mutual labels:  npm-cli
cmd-shim
The cmd-shim used in npm
Stars: ✭ 65 (+140.74%)
Mutual labels:  npm-cli
libnpmsearch
programmatic API for the shiny new npm search endpoint
Stars: ✭ 25 (-7.41%)
Mutual labels:  npm-cli
cross-post
Cross Post a blog to multiple websites
Stars: ✭ 66 (+144.44%)
Mutual labels:  npm-cli
git
a util for spawning git from npm CLI contexts
Stars: ✭ 48 (+77.78%)
Mutual labels:  npm-cli
fs-minipass
fs read and write streams based on minipass
Stars: ✭ 15 (-44.44%)
Mutual labels:  npm-cli
npm-registry-mock
mock the npm registry
Stars: ✭ 26 (-3.7%)
Mutual labels:  npm-cli
node-cli-boilerplate
🪓 Create node cli with this user friendly boilerplate
Stars: ✭ 17 (-37.04%)
Mutual labels:  npm-cli
npm-profile
Make changes to your npmjs.com profile via cli or library
Stars: ✭ 29 (+7.41%)
Mutual labels:  npm-cli
inflight
Add callbacks to requests in flight to avoid async duplication
Stars: ✭ 63 (+133.33%)
Mutual labels:  npm-cli
Cli
the package manager for JavaScript
Stars: ✭ 5,277 (+19444.44%)
Mutual labels:  npm-cli
Node Semver
The semver parser for node (the one npm uses)
Stars: ✭ 3,944 (+14507.41%)
Mutual labels:  npm-cli
run-script
Run a lifecycle script for a package (descendant of npm-lifecycle)
Stars: ✭ 29 (+7.41%)
Mutual labels:  npm-cli

@npmcli/lint

Lint the npmcli way

USAGE

This package contains two executable scripts. One for linting your code, and the other for automatically setting up your package.json to lint code at convenient times.

Quick and Opinionated

npm exec --package @npmcli/lint -c npmcli-lint-init

This installs the dev dependency, removes an existing .eslintrc.json and existing eslint dependencies, and forcibly sets up all your scripts appropriately.

Customizable Approach

npm i -D @npmcli/lint

# setup package.json with the linting scripts for npm run
npm exec --package @npmcli/lint -c npmcli-lint-setup

# setup package.json, clobbering any existing scripts
npm exec --package @npmcli/lint -c 'npmcli-lint-setup --force'

# just run manually, linting with our style rules
npm exec --package @npmcli/lint -- # any args to eslint go here...

The setup script adds the following script targets for npm run. If a script already exists in that spot, it is not modified unless --force is provided.

  • npmclilint - runs npmcli-lint
  • lint - runs npm run npmclilint -- *.js lib/**/*.js test/**/*.js
  • lintfix - runs npm run lint -- --fix to automatically fix linting errors if possible.
  • posttest - runs npm run lint -- to lint automatically after running tests)
  • postsnap - runs npm run lintfix -- to fix lint errors automatically when generating snapshots with tap.

Appropriate versions of eslint and necessary plugins are listed as peer dependencies, so that they will be loaded in the project and found where needed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].