From 1fdca7078d93fb014bb00bbb520352fa51100686 Mon Sep 17 00:00:00 2001 From: zhanwen Date: Tue, 24 Sep 2019 12:14:26 +0800 Subject: [PATCH] feat: enable semi rule (#9) --- lib/eslint.js | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/eslint.js b/lib/eslint.js index a0c7729..915db0d 100644 --- a/lib/eslint.js +++ b/lib/eslint.js @@ -110,5 +110,7 @@ module.exports = { "no-return-await": 0, // 禁止 ++ --: 取消 "no-plusplus": 0, + // 强制语句结尾必须加逗号:开启 + "semi": ["error", "always"], } } diff --git a/package.json b/package.json index 2112d4f..7dfc7f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ice/spec", - "version": "0.1.7", + "version": "0.1.8", "description": "eslint/stylelint/editorconfig", "main": "lib/index.js", "scripts": {