1.0.10 • Published 7 years ago

eslint-config-dp v1.0.10

Weekly downloads
13
License
ISC
Repository
-
Last release
7 years ago

Eslint配置文件

前言

该配置文件是继承至eslint-config-standard规范,根据团队内部使用习惯做了些调整,具体调整请查看.eslintrc.js配置文件。

如何使用

  • 安装依赖
npm i eslint eslint-config-dp eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard --save-dev
  • 在项目根目录新建.eslintrc.js文件,输入以下内容:
module.exports = {
    extends: 'dp'
};

如何在Sublime中启用Eslint代码检测?

  1. 通过Package Control安装SublimeLinterSublimeLinter-contrib-eslint两个插件;
  2. 配置SublimeLinter的Node.js的路径:
    打开Preference > Package Settings > SublimeLinter > Settings - Default文件,在paths属性填写本机所属平台下的node路径;
  3. 重复如何使用中的步骤进行依赖安装和新建.eslintrc.js配置文件;
  4. 重启Sublime使配置生效。
1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago