@josundt/eslint-config 5.2.1 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/formatter-sonar.js +3 -3
- package/package.json +1 -1
- package/rules/eslint.js +4 -1
package/formatter-sonar.js
CHANGED
@@ -15,9 +15,9 @@ module.exports = function (results) {
|
|
15
15
|
textRange: {
|
16
16
|
startLine: msg.line,
|
17
17
|
endLine: msg.endLine,
|
18
|
-
endColumn: msg.endColumn
|
19
|
-
}
|
20
|
-
}
|
18
|
+
endColumn: msg.endColumn
|
19
|
+
}
|
20
|
+
}
|
21
21
|
};
|
22
22
|
|
23
23
|
// The log message type and severity is up to you but you need to take in consideration SonarQube properties
|
package/package.json
CHANGED
package/rules/eslint.js
CHANGED
@@ -146,7 +146,10 @@ module.exports = {
|
|
146
146
|
"object-shorthand": ["error", "never"],
|
147
147
|
"one-var": ["error", "never"],
|
148
148
|
"prefer-arrow-callback": "error",
|
149
|
-
"prefer-const":
|
149
|
+
"prefer-const": [
|
150
|
+
"error",
|
151
|
+
{ destructuring: "all", ignoreReadBeforeAssign: false }
|
152
|
+
],
|
150
153
|
"prefer-exponentiation-operator": "error",
|
151
154
|
"prefer-object-spread": "error",
|
152
155
|
"prefer-promise-reject-errors": "error",
|