linteverything v0.9.5
Lint Everything !
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);
});
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.
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago