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 🙏

© 2024 – Pkg Stats / Ryan Hefner

eslint-config-pandola

v3.0.2

Published

Pandolajs app style - ESLint Shareable Config.

Downloads

16

Readme

eslint-config-pandola

npm version

pandolajs 是一个基于 React, Koa2 框架为基础,使用 Webpack 进行构建的,为了统一前端技术栈,降低前端一线开发人员的前端工程化整体解决方案。他将囊括项目脚手架,组件库,构建工具,mock 平台,联调/测试/上线部署方案于一身,成为真正的前端开发的魔力宝盒。

What is this

eslint-config-pandola 是专门为通过 generator-pandora-app 脚手架生成的应用提供的一套 eslint 代码规范。

Usage

  • 首先你需要确保项目中已经安装版本 >=4.8.1 的 eslint,如果没有,可以通过以下命令进行安装:
  npm i -D eslint
  • 安装 eslint-config-pandola
  npm i -D eslint-config-pandola
  • 配置: 新建 .eslintrc.json 然后在加入如下配置:
  {
    "extends": "pandola"
  }

没错,就是这么简单。

Others

  • parser 默认使用 babel-eslint

  • plugins 设置

    • import
    • node
    • promise
    • standard
    • react
    • css-modules
    • flowtype
  • extends 规则

    • eslint:recommended
    • eslint-config-standard
    • eslint-config-santdard-react
    • plugin:css-modules/recommended
    • plugin:flowtype/recommended
  • env 设置

    • browser
    • jest
    • node
    • es6
  • 查看所有规则可以通过在该项目下执行 npm run lint:rules 命令查看所有的配置生效的规则,并且会列出所有规则的说明文档,你也可以执行 npm run lint:rules | grep 你想知道的 rule 名 来查看具体某条规则的说明。

  • css-modules:

    我们可以通过 /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['some-css-class'] }] */ 来处理无法静态检测到的 css class.