@dlint/core
Advanced tools
@@ -6,4 +6,5 @@ export declare enum RuleTarget { | ||
| ALL_NODEJS = "allNodejs", | ||
| ALL_JSON = "allJson", | ||
| LAYERS = "layers", | ||
| PACKAGES = "packages" | ||
| } |
@@ -9,4 +9,5 @@ "use strict"; | ||
| RuleTarget["ALL_NODEJS"] = "allNodejs"; | ||
| RuleTarget["ALL_JSON"] = "allJson"; | ||
| RuleTarget["LAYERS"] = "layers"; | ||
| RuleTarget["PACKAGES"] = "packages"; | ||
| })(RuleTarget = exports.RuleTarget || (exports.RuleTarget = {})); |
@@ -6,2 +6,3 @@ export declare enum RuleUnitName { | ||
| AllowAllNodejs = "AllowAllNodejs", | ||
| AllowAllJson = "AllowAllJson", | ||
| AllowLayers = "AllowLayers", | ||
@@ -13,2 +14,3 @@ AllowPackages = "AllowPackages", | ||
| DisallowAllNodejs = "DisallowAllNodejs", | ||
| DisallowAllJson = "DisallowAllJson", | ||
| DisallowLayers = "DisallowLayers", | ||
@@ -15,0 +17,0 @@ DisallowPackages = "DisallowPackages" |
@@ -9,2 +9,3 @@ "use strict"; | ||
| RuleUnitName["AllowAllNodejs"] = "AllowAllNodejs"; | ||
| RuleUnitName["AllowAllJson"] = "AllowAllJson"; | ||
| RuleUnitName["AllowLayers"] = "AllowLayers"; | ||
@@ -16,2 +17,3 @@ RuleUnitName["AllowPackages"] = "AllowPackages"; | ||
| RuleUnitName["DisallowAllNodejs"] = "DisallowAllNodejs"; | ||
| RuleUnitName["DisallowAllJson"] = "DisallowAllJson"; | ||
| RuleUnitName["DisallowLayers"] = "DisallowLayers"; | ||
@@ -31,2 +33,4 @@ RuleUnitName["DisallowPackages"] = "DisallowPackages"; | ||
| return 'allow: allPackages'; | ||
| case RuleUnitName.AllowAllJson: | ||
| return 'allow: allJson'; | ||
| case RuleUnitName.AllowLayers: | ||
@@ -44,2 +48,4 @@ return 'allow: layers'; | ||
| return 'disallow: allPackages'; | ||
| case RuleUnitName.DisallowAllJson: | ||
| return 'disallow: allJson'; | ||
| case RuleUnitName.DisallowLayers: | ||
@@ -46,0 +52,0 @@ return 'disallow: layers'; |
+1
-1
| { | ||
| "name": "@dlint/core", | ||
| "description": "DLint core module", | ||
| "version": "0.1.1", | ||
| "version": "0.2.0", | ||
| "author": "FujiHaruka <fizzyjohn1427@gmail.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
13424
3.28%380
2.7%