@prowise/eslint-config-linting-rules 1.0.2 → 1.0.4

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/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@prowise/eslint-config-linting-rules","version":"1.0.2","description":"Default Prowise linting rules for npm packages.","main":"index.js","exports":{"./typescript":"./typescript.js","./backend":"./backend.js","./frontend":"./frontend.js"},"scripts":{"lint":"eslint **/*.js"},"repository":{"type":"git","url":"git+ssh://git@bitbucket.org/prowise/npm-linting-rules.git"},"author":"Prowise B.V.","license":"UNLICENSED","homepage":"https://bitbucket.org/prowise/npm-linting-rules#readme","dependencies":{"@typescript-eslint/eslint-plugin":"^5.41.0","@typescript-eslint/parser":"^5.41.0","confusing-browser-globals":"^1.0.11","eslint":"^8.26.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^27.1.3","eslint-plugin-jsdoc":"^39.3.25","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-react":"^7.31.10","eslint-plugin-react-hooks":"^4.6.0","object.assign":"^4.1.4"}}
1
+ {"name":"@prowise/eslint-config-linting-rules","version":"1.0.4","description":"Default Prowise linting rules for npm packages.","main":"index.js","exports":{"./default":"./index.js","./typescript":"./typescript.js","./backend":"./backend.js","./frontend":"./frontend.js"},"scripts":{"lint":"eslint **/*.js"},"repository":{"type":"git","url":"git+ssh://git@bitbucket.org/prowise/npm-linting-rules.git"},"author":"Prowise B.V.","license":"UNLICENSED","homepage":"https://bitbucket.org/prowise/npm-linting-rules#readme","dependencies":{"@typescript-eslint/eslint-plugin":"^5.41.0","@typescript-eslint/parser":"^5.41.0","confusing-browser-globals":"^1.0.11","eslint":"^8.26.0","eslint-import-resolver-typescript":"^3.5.2","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^27.1.3","eslint-plugin-jsdoc":"^39.3.25","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-react":"^7.31.10","eslint-plugin-react-hooks":"^4.6.0","object.assign":"^4.1.4"}}
@@ -428,7 +428,7 @@ module.exports = {
428
428
  * Specify curly brace conventions for all control statements 🔧
429
429
  * https://eslint.org/docs/latest/rules/curly.
430
430
  */
431
- curly: ["error", "multi", "consistent"],
431
+ curly: ["error", "multi-line", "consistent"],
432
432
 
433
433
  /**
434
434
  * Require default case in switch statements
@@ -521,8 +521,9 @@ module.exports = {
521
521
  /**
522
522
  * Disallow conditionals where the type is always truthy or always falsy 🔒 🔧 💭
523
523
  * https://typescript-eslint.io/rules/no-unnecessary-condition.
524
+ * Turned off for now: a lot of false positives which breaks code!!
524
525
  */
525
- "@typescript-eslint/no-unnecessary-condition": "warn",
526
+ "@typescript-eslint/no-unnecessary-condition": "off",
526
527
 
527
528
  /**
528
529
  * Disallow unnecessary namespace qualifiers 🔧 💭