From 570290241dc983abfb14bb20b0e8eb8b3a74a22d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 12:17:13 +0400 Subject: feat(security): Initial security plugin Signed-off-by: Valentin Popov --- src/javascript.ts | 8 +++++++- src/rules/security.json | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/rules/security.json (limited to 'src') diff --git a/src/javascript.ts b/src/javascript.ts index 6dd6ac8..9026379 100644 --- a/src/javascript.ts +++ b/src/javascript.ts @@ -1,5 +1,6 @@ import rDefault from "./rules/default.json"; import rImport from "./rules/import.json"; +import rSecurity from "./rules/security.json"; module.exports = { "extends": [ @@ -7,10 +8,15 @@ module.exports = { "plugin:import/errors", "plugin:import/recommended", "plugin:import/warnings", + "plugin:security/recommended", + ], + "plugins": [ + "import", + "security", ], - "plugins": ["import"], "rules": { ...rDefault, ...rImport, + ...rSecurity, }, }; diff --git a/src/rules/security.json b/src/rules/security.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/src/rules/security.json @@ -0,0 +1 @@ +{} -- cgit v1.2.3