diff --git a/.eslintrc.json b/.eslintrc.json
index 61718141ee6d319c12643ab4ead29002d66cdc1a..1c8773162eefbea34c06c089fd284c8ecac4e224 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -5,9 +5,10 @@
 		"es6": true,
 		"jquery": true
 	},
-	"extends": "eslint:recommended",
+	"extends": ["eslint:recommended", "plugin:sonarjs/recommended"],
 	"plugins": [
-		"jsdoc"
+		"jsdoc",
+		"sonarjs"
 	],
 	"globals": {
 		"SugarCube": false,
diff --git a/package.json b/package.json
index 1bb8f9c052a0fb7322b102ea7d343aaa66d9c534..faf4c485e6c503ba8b969aa3b5a41691759786d3 100644
--- a/package.json
+++ b/package.json
@@ -19,6 +19,7 @@
 		"autoprefixer": "^9.8.6",
 		"eslint": "^7.6.0",
 		"eslint-plugin-jsdoc": "^30.2.1",
+		"eslint-plugin-sonarjs": "^0.5.0",
 		"fancy-log-levels": "^1.0.0",
 		"gulp": "^4.0.2",
 		"gulp-concat": "^2.6.1",