From 3a6a1d0c3ad4d742e4da37b93613cf77b066dc7f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 12:25:05 +0400 Subject: feat(sonar): Initial SonarJS plugin Signed-off-by: Valentin Popov --- src/javascript.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/javascript.ts') diff --git a/src/javascript.ts b/src/javascript.ts index 9026379..85499be 100644 --- a/src/javascript.ts +++ b/src/javascript.ts @@ -1,6 +1,7 @@ import rDefault from "./rules/default.json"; import rImport from "./rules/import.json"; import rSecurity from "./rules/security.json"; +import rSonarJS from "./rules/sonarjs.json"; module.exports = { "extends": [ @@ -9,14 +10,17 @@ module.exports = { "plugin:import/recommended", "plugin:import/warnings", "plugin:security/recommended", + "plugin:sonarjs/recommended", ], "plugins": [ "import", "security", + "sonarjs", ], "rules": { ...rDefault, ...rImport, ...rSecurity, + ...rSonarJS, }, }; -- cgit v1.2.3