@putout/cli-ruler
Advanced tools
+8
-1
@@ -7,2 +7,6 @@ const getRule = (a) => a.rule; | ||
| const {keys} = Object; | ||
| const {isArray} = Array; | ||
| const isTuple = (a) => isArray(a); | ||
| const isPutoutRule = (rule) => { | ||
@@ -49,3 +53,6 @@ if (/^parser/.test(rule)) | ||
| config.rules[rule] = 'off'; | ||
| if (isTuple(config.rules[rule])) | ||
| config.rules[rule] = ['off', config.rules[rule][1]]; | ||
| else | ||
| config.rules[rule] = 'off'; | ||
@@ -52,0 +59,0 @@ return config; |
+2
-2
| { | ||
| "name": "@putout/cli-ruler", | ||
| "version": "1.0.1", | ||
| "version": "1.1.0", | ||
| "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -37,3 +37,3 @@ "description": "toggle rules in .putout.json", | ||
| "eslint-plugin-node": "^11.0.0", | ||
| "eslint-plugin-putout": "^9.0.0", | ||
| "eslint-plugin-putout": "^10.0.0", | ||
| "lerna": "^4.0.0", | ||
@@ -40,0 +40,0 @@ "madrun": "^8.0.1", |
6310
2.84%76
7.04%