Socket
Book a DemoInstallSign in
Socket

@alifd/eslint-config-next

Package Overview
Dependencies
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alifd/eslint-config-next

Next components ESLint config, following our styleguide.

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
209
-54.07%
Maintainers
6
Weekly downloads
 
Created
Source

@alifd/eslint-config-next

@alifd/eslint-config-next 是 Next 组件库默认的 eslint 配置。

代码风格指南

  • javascript
  • jsx

规则配置原则

  • browser,目前配置的规则主要针对浏览器端代码的检查
  • es6+,支持对es6+语法规则的检查
  • react,扩展对jsx语法规则的检查
  • ie9+,不包括对兼容ie低版本特殊代码书写方式规则的检查

常见代码风格配置

  • 缩进使用4个空格 "indent": [2, 4, { "SwitchCase": 1 }],
  • 使用单引号 "quotes": [2, "single"]
  • 语句结尾保有分号 "semi": 2

IDE 配置

参考

Keywords

fusion

FAQs

Package last updated on 21 Aug 2018

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