npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fis3-lint-noob-eslint

v2.0.1

Published

基于fis3的eslint检测插件

Readme

fis3-lint-noob-eslint

noob lab(菜鸟实验室)出品,基于fis3的eslint自动检测插件

安装

npm install fis3-lint-noob-eslint -g

使用示例

在fis-config.js中配置如下:

var config = {
    ignoreFiles:[],
    envs: [],
    globals: [],
    rules: {
        // 不必要非得用骆驼拼接法
      "camelcase": 0,
        // 设置为0,代表 == 也可以不必要非得 ===
      "eqeqeq": 0
    }
}


fis.match('*.js', {
    lint: fis.plugin('noob-eslint', config)
})

在自定义config中的属性会覆盖插件的默认配置

config是对eslint的自定义配置文件。具体配置可以参考Configuring ESLint

fis.match('*.js', {
    lint: fis.plugin('noob-eslint')
})

大部分情况下使用默认配置就行,如有特殊情况可以配置自定义config

在不传config的情况下,插件默认使用ferossstandard标准

standard标准外的默认配置

{
  "ignoreFiles":["fis-config.js"],
  "useEslintrc": false,
  "envs": ["es6", "browser", "node", "commonjs", "amd"],
  "globals": [
    "__inline",
    "__uri",
    "__RESOURCE_MAP__",
    "fis",
    "Vue",
    "$",
    "session_storage",
    "m9futil",
    "alert",
    "Navigation",
    "navigator",
    "TDAPP",
    "jiuFuWallet",
    "Swiper",
    "Context",
    "Tool",
    "TouchSlide"
  ],
  "rules": {},
  "plugins": []
}

查看文件版本

命令行中输入如下命令:

noob-eslint

注意事项

  • 因为fis3对文件对象中每一个文件进行单文件编译。当开起文件监听模式的时候,每次修改后保存,只会编译此时发生保存动作的这个文件,所以只会输出一个文件的检查结果。
  • 而如果保存动作发生在fis-config.js文件中时,fis3会将所有命中文件相继编译一遍,此时会输出所有文件的检查结果。同理,开启文件监听模式在刚release时会输出所有命中文件检查结果,之后只会输出发生保存动作的文件的检查结果
  • 本插件使用的是fis3提供的lint插件扩展点。此扩展点比较特殊,要触发此扩展点需要在release的时候添加-l参数,所以要打开文件监听,页面自刷新和代码检查需用以下命令:
fis3 release -wLl