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

@aliwind/eslint-config-wind

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aliwind/eslint-config-wind

Shareable eslint config for wind project. Manage eslint related config in one place.

  • 0.0.1
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
3
Weekly downloads
 
Created
Source

@aliwind/eslint-config-wind

项目 eslint 配置收敛

此项目管理以下配置:

  • eslint 相关的 npm 包依赖。比如依赖于哪个版本的 eslint-config-airbnb、eslint-plugin-jest 等。用户项目安装 eslint-config-wind 的时候会自动安装这些依赖。并且用户项目的 package.json 中不需要指定这些依赖。这样,我们可以统一管理 eslint、eslint-plugin-jest 等 npm 包的升级。
  • eslint 配置。@aliwind/eslint-config-wind提供了 wind 组件开发时的 eslint 配置。@aliwind/eslint-config-wind/test-ts提供了 wind 组件测试时的配置。

使用方式

  1. 安装:
npm install -D @aliwind/eslint-config-wind eslint

eslint 是 peerDependencies,用户需要自行安装。用户不再需要主动安装 eslint-plugin-react 这些配置包

  1. 在项目根目录添加普通配置/.eslintrc.json
{
  "root": true,
  "extends": ["@aliwind/eslint-config-wind"]
}

如果你不想在根目录增加配置文件/.eslintrc.json的话,可以将配置放在package.json中:

"eslintConfig": {
  "extends": "@aliwind/eslint-config-wind"
}
  1. 如果有测试的话,在测试目录添加测试专用配置/tests/.eslintrc.json
{
  "root": true,
  "extends": ["@aliwind/eslint-config-wind/test-ts"]
}

eslint 会不断向上查找配置(即使已经找到配置),直到根路径,然后将所有找到的配置按照顺序合并成最终配置。使用"root": true是为了告诉 eslint 不要再继续向上查找了。你可以自己决定需不需要这个选项。

Keywords

FAQs

Package last updated on 24 Sep 2019

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