fis3-lint-eslint-noisy
v5.1.0
Published
a js linter plugin of fis3 based on eslint.
Downloads
123
Maintainers
Readme
fis3-lint-eslint-noisy
a js linter plugin of fis3 based on eslint.
install
npm install --global fis3-lint-eslint-noisy
about package name
i named this package noisy
is because the other eslint plugins for fis all silently failed when error report by eslint.
usage
// fis-conf.js
const eslintConf = {}
fis.match('*.js', {
lint: fis.plugin('eslint-noisy', eslintConf),
})
options
options: http://eslint.org/docs/developer-guide/nodejs-api#cliengine
rules and fixable rules: http://eslint.org/docs/rules/
const eslintConf = {
fix: true, // ❗!!! important !!!❗
// default: true,
// be careful, this might change your source code
// this will trigger `CLIEngine.outputFixes` automatically
configFile:
envs: // default: ['browser']
extensions:
globals:
ignore:
ignorePath:
ignorePattern:
baseConfig:
rulePaths:
rules:
useEslintrc: // defalut: true
parser:
cache:
cacheFile:
cacheLocation:
cwd:
};
default options
{
"envs": ["browser"],
"fix": true,
"useEslintrc": true
}
NOTICE: this might change in future
links
fis3: http://fis.baidu.com/
eslint: http://eslint.org/
license
MIT © fisker Cheung