fis3-lint-eslint-noisy-xin
v1.0.7
Published
优信前端JS代码规范检查工具
Downloads
12
Maintainers
Readme
fis3-lint-eslint-noisy-xin
a js linter plugin of fis3 based on eslint
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
$ npm i -g fis3-lint-eslint-noisy-xin
// fis-conf.js
var eslintConf = {
configFile: '.eslintrc.json',
startDate: '2018/08/01',
fix: true
};
fis.match('*.js', {
lint: fis.plugin('eslint-noisy-xin', eslintConf)
});
options
options: [http://eslint.org/docs/developer-guide/nodejs-api#cliengine]
rules and fixable rules: [http://eslint.org/docs/rules/]
var eslintConf = {
configFile:
envs: // default: ['browser']
extensions:
globals:
fix: , // ❗!!! important !!!❗
// default:false,
// be careful, this might change your source code
// this will trigger `CLIEngine.outputFixes` automatically
ignore:
ignorePath:
ignorePattern:
baseConfig:
rulePaths:
rules:
useEslintrc: // defalut: true
parser:
cache:
cacheFile:
cacheLocation:
cwd:
};
links
fis3: [http://fis.baidu.com/]
eslint: [http://eslint.org/]