Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

eslint-config-winfe

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-winfe

ESLint Config for winchannel fe team

latest
npmnpm
Version
0.0.6
Version published
Weekly downloads
9
80%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-winfe

Winchannel JS 代码检查规范

Usage

eslint-config-winfe

JS 检查

  • npm install eslint eslint-config-winfe --save-dev
  • 在 .eslintrc 中添加
{
  "extends": ["winfe"]
}

React

  • npm install eslint-plugin-react --save-dev
  • 在 .eslintrc 中添加
{
  "extends": ["winfe", "winfe/react"]
}

Only JSX

  • 在 .eslintrc 中添加
{
  "extends": ["winfe", "winfe/jsx"]
}

ES6 新特性

ESLint 目前不支持部分 es6/7 的新特性: class properties, decorators, types,如果想要检查使用了这些新特性的代码,需安装 babel-eslint npm install babel-eslint --save-dev,并在 .eslintrc 中添加

{
  "parser": "babel-eslint"
}

License

MIT

Keywords

eslint

FAQs

Package last updated on 06 Mar 2017

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