0.9.5 • Published 6 years ago

linteverything v0.9.5

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

Lint Everything ! Build Status

One Linter to parse them all and in the darkness lint them.

Usage

In a npm script

First install the package with:

$ npm install linteverything

Then add a script to package.json :

{
	...
	"scripts": {
		"linteverything": "linteverything"
	},
	...
}

Finally run the script:

$ npm run linteverything

In a Travis CI script

Just add the following to .travis.yml :

script:
  - npm install linteverything
  - printf "module.exports={ignore:['node_modules','package-lock.json','.git','.travis.yml'],verbose:true};" > .linteverythingrc.js
  - node ./node_modules/linteverything/bin/linteverything.js

In Node.js

First install the package with :

$ npm install linteverything --save-dev

Then add the following to your code :

const linteverything = require('linteverything');
const options = {
	verbose:true
};
linteverything(options).then(function(result) {
	console.log(result);
});

Try it on your browser !

Options

Options are defined as javascript objects.

They can be set in 3 places:

  • in the argument passed to linteverything(options) ;
  • in .linteverythingrc.js ;
  • in default-settings.js.

failOnError

Default : true.

Boolean controlling how to exit.

If set to true, linteverything will exit with code 1.

ignore

Default : [].

An array of files and folders to ignore. They will be ignored by every linters.

ignoreExtensions

Default : ['jar', 'pdf'].

An array of extensions to ignore. They will be ignored by every linters.

logLevel

Default : 'error'.

Values :

  • 'all' : report everything ;
  • 'error' : report errors only ;
  • 'warning' : report errors and warnings.

linters

Default : all linters are enabled.

Supported linters:

verbose

Default : false.

Boolean to enable or disable verbose logs.

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.0

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago