0.0.14 • Published 9 years ago

minilint v0.0.14

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

minilint

Build Status

minilint is a fast and small linter. It is intended to encourage modularity.

It lints JavaScript with the following rules:

  • Max 500 lines per file
  • Max 80 chars per line
  • Max 40 lines per code block (function, array, etc)
  • Use two spaces, not tabs
  • Max six spaces at the beginning of a line
  • No end-of-line operators or semicolons
  • No opening ( or [ at the start of a line
  • Strict mode

I'm experimenting with using this on my projects. Feel free to use this as well, or not.

Installation

npm install -g minilint

Usage

minilint <path1> <path2> <...>

Note

If no arguments are passed, minilint will automatically include **/*.js and exclude node_modules/**, coverage/**, and **/*.min.js.

Options

--help -h: show help
--verbose -v: enable verbose logging
--exclude -e: exclude all paths appearing after this option

Examples

minilint
minilint file.js
minilint file.js --verbose
minilint file1.js file2.js file3.js
minilint "**/*.js" --exclude "node_modules/**"
minilint "**/*.js" -v -e "node_modules/**"

License

MIT

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago