All Projects → sindresorhus → npmlint

sindresorhus / npmlint

Licence: other
[DEPRECATED] Lint your npm package

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to npmlint

Gulp Traceur
Traceur is a JavaScript.next to JavaScript-of-today compiler
Stars: ✭ 172 (+201.75%)
Mutual labels:  npm-package, deprecated
is-safe-integer
ES2015 Number.isSafeInteger() ponyfill
Stars: ✭ 16 (-71.93%)
Mutual labels:  npm-package, deprecated
komit
An interactive prompt for conventional commit messages that doesn't get in your way. Designed to run as a git hook.
Stars: ✭ 29 (-49.12%)
Mutual labels:  lint, npm-package
Grunt Myth
Myth - Postprocessor that polyfills CSS
Stars: ✭ 70 (+22.81%)
Mutual labels:  npm-package, deprecated
Grunt Recess
[DEPRECATED] Lint and minify CSS and LESS
Stars: ✭ 205 (+259.65%)
Mutual labels:  lint, deprecated
eslint-rules
My custom eslint rules in addition to the ones provided at http://eslint.org/
Stars: ✭ 94 (+64.91%)
Mutual labels:  lint
eslint-plugin-vue-scoped-css
ESLint plugin for Scoped CSS in Vue.js
Stars: ✭ 58 (+1.75%)
Mutual labels:  npm-package
node-pagerduty
⛔️ DEPRECATED - PagerDuty v2 API Wrapper for Node
Stars: ✭ 19 (-66.67%)
Mutual labels:  deprecated
MinifyAllCli
📦 A lightweight, simple and easy npm tool to 𝗺𝗶𝗻𝗶𝗳𝘆 JSON/C, HTML and CSS! Also known as MinifyAll core! ⭐ Usable as 𝑪𝑳𝑰 tool or 𝒊𝒎𝒑𝒐𝒓𝒕𝒂𝒃𝒍𝒆 in TS/JS as a 𝑴𝑶𝑫𝑼𝑳𝑬 🥰
Stars: ✭ 21 (-63.16%)
Mutual labels:  npm-package
eslint-formatter-git-log
ESLint Formatter featuring Git Author, Date, and Hash
Stars: ✭ 36 (-36.84%)
Mutual labels:  lint
django-snow
ServiceNow Ticket Management App for Django based projects
Stars: ✭ 16 (-71.93%)
Mutual labels:  deprecated
eslint-plugin-todo-plz
Enforce consistent and maintainable TODO comments
Stars: ✭ 19 (-66.67%)
Mutual labels:  npm-package
react-i18next-phraseapp
Library support to use react-i18next with the Phrase In-Context Editor - DEPRECATED
Stars: ✭ 14 (-75.44%)
Mutual labels:  deprecated
js-mdict
*.mdx/*.mdd interpreter js implements
Stars: ✭ 91 (+59.65%)
Mutual labels:  npm-package
micro-signals
A tiny typed messaging system inspired by js-signals that uses ES2015 sets
Stars: ✭ 39 (-31.58%)
Mutual labels:  npm-package
li18nt
🌎 Lint your i18n translation files. Detect conflicting properties, duplicates and make it more readable and easier to maintain by formatting it!
Stars: ✭ 29 (-49.12%)
Mutual labels:  lint
node-reactive-postgres
Reactive queries for PostgreSQL
Stars: ✭ 28 (-50.88%)
Mutual labels:  npm-package
ugql
🚀GraphQL.js over HTTP with uWebSockets.js
Stars: ✭ 27 (-52.63%)
Mutual labels:  npm-package
standard-action
Github Action to lint with `standard` and friends
Stars: ✭ 15 (-73.68%)
Mutual labels:  lint
2018-package-three-webpack-plugin
[ARCHIVED] Webpack plugin to use Three.js "examples" classes
Stars: ✭ 45 (-21.05%)
Mutual labels:  npm-package

Deprecated

This is a code dump of something I made a long time ago, but never had the time to finish. There are lots of things that could have been done better.


npmlint Build Status

Lint your npm package

Makes sure your package is unicorn good.

Install

$ npm install --global npmlint

Usage

Go to the package you want to lint and run npmlint.

API

$ npm install --save npmlint
const npmlint = require('npmlint');

console.log(npmlint());
//=> ['suggestion', 'another suggestion']

Dev

You can try it out by cd'ing into the test folder and running ../cli.js

Creating rules

Rules are located in a rules directory. These are loaded automatically.

A rule is initiated with an object containing:

  • cwd: the current working directory
  • pkg: the target package' package.json

It's expected to return an object or an array of object containing:

  • name: a slug name for the rule
  • severity: info, warn, error. Use your best judgement
  • message: a message describing the violation

License

MIT © Sindre Sorhus

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].