@alifd/eslint-config-next

2.0.0 • Public • Published

@alifd/eslint-config-next

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

代码风格指南

规则配置原则

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

常见代码风格配置

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

IDE 配置

参考

Package Sidebar

Install

npm i @alifd/eslint-config-next

Weekly Downloads

58

Version

2.0.0

License

MIT

Unpacked Size

13.9 kB

Total Files

7

Last publish

Collaborators

  • soberz
  • whatever_lll
  • john-watson
  • eternalsky
  • mark-ck
  • lakerswgq
  • no-repeat
  • wwsun
  • aboutblank
  • bindoon
  • tao1991123
  • vicerwang
  • myronliu347
  • jdkahn
  • fusion-bot
  • sobear
  • lianmin
  • clarkxia
  • quanyin
  • jerryyxu
  • yellow2dong
  • alvinhui
  • andevery
  • luhengchang228
  • yuysmile
  • fd.xy
  • rax-publisher