summaryrefslogtreecommitdiff
path: root/src/javascript.ts
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 11:25:05 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 11:25:05 +0300
commit3a6a1d0c3ad4d742e4da37b93613cf77b066dc7f (patch)
tree46ee4492ffb3ff780281966e90debf21d91d39db /src/javascript.ts
parent570290241dc983abfb14bb20b0e8eb8b3a74a22d (diff)
downloadeslint-config-3a6a1d0c3ad4d742e4da37b93613cf77b066dc7f.tar.xz
eslint-config-3a6a1d0c3ad4d742e4da37b93613cf77b066dc7f.zip
feat(sonar): Initial SonarJS plugin
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/javascript.ts')
-rw-r--r--src/javascript.ts4
1 files changed, 4 insertions, 0 deletions
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,
},
};