fis3-lint-eslint-noisy

a js linter plugin of fis3 based on eslint.

Usage no npm install needed!

<script type="module">
  import fis3LintEslintNoisy from 'https://cdn.skypack.dev/fis3-lint-eslint-noisy';
</script>

README

fis3-lint-eslint-noisy

a js linter plugin of fis3 based on eslint.

styled with prettier npm npm npm

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

license

MIT © fisker Cheung