New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@qihoo/eslint-plugin-card

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qihoo/eslint-plugin-card

card rule validation plugin

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
7
Weekly downloads
 
Created
Source

eslint-plugin-card

The card rule validation plugin of eslint.

配置

module.exports = {
  plugins: [
    "@qihoo/eslint-plugin-card"
  ],
  rules: {
    '@qihoo/card/no-card-globals',
    '@qihoo/card/no-card-tags',
    '@qihoo/card/no-card-attributes'
  }
}

自定义规则

命名约定:

  • 如果你的规则是禁止什么,加前缀 no-,比如 no-eval 禁用 eval(),no-debugger 禁用 debugger
  • 如果你规则是强制包含什么,使用一个简短的名称,不带特殊的前缀。
  • 在单词之间使用连字符

规则说明在docs/rules目录。

说明

当使用 html 标签规则时,需要配置 parser 为eslint-html-parser

install

npm install @qihoo/eslint-plugin-card

Keywords

FAQs

Package last updated on 07 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc