@prowise/eslint-config-linting-rules 1.0.0 → 1.0.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/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@prowise/eslint-config-linting-rules","version":"1.0.0","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.36.2","@typescript-eslint/parser":"^5.36.2","confusing-browser-globals":"^1.0.11","eslint":"^8.24.0","eslint-import-resolver-typescript":"^3.5.1","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^27.0.1","eslint-plugin-jsdoc":"^39.3.6","eslint-plugin-node":"^11.1.0","eslint-plugin-prefer-arrow":"^1.2.3","eslint-plugin-react":"^7.31.7","eslint-plugin-react-hooks":"^4.6.0","object.assign":"^4.1.4"}}
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"}}
@@ -637,7 +637,7 @@ module.exports = {
637
637
  * Disallow use of the continue statement
638
638
  * https://eslint.org/docs/latest/rules/no-continue.
639
639
  */
640
- "no-continue": "warn",
640
+ "no-continue": "off",
641
641
 
642
642
  /**
643
643
  * Disallow deletion of variables ✅
@@ -1298,8 +1298,9 @@ module.exports = {
1298
1298
  /**
1299
1299
  * Disallow use of Object.prototype.hasOwnProperty.call() and prefer use of Object.hasOwn() 🔧
1300
1300
  * https://eslint.org/docs/latest/rules/prefer-object-has-own.
1301
+ * Turned off: only supported with ES2022 and node 18: can be turned on when all projects support node18/ES2022
1301
1302
  */
1302
- "prefer-object-has-own": "error",
1303
+ "prefer-object-has-own": "off",
1303
1304
 
1304
1305
  /**
1305
1306
  * Prefer use of an object spread over Object.assign 🔧
@@ -1726,10 +1727,10 @@ module.exports = {
1726
1727
  "object-curly-newline": [
1727
1728
  "error",
1728
1729
  {
1729
- ObjectExpression: { minProperties: 7, multiline: true, consistent: true },
1730
- ObjectPattern: { minProperties: 7, multiline: true, consistent: true },
1731
- ImportDeclaration: { minProperties: 7, multiline: true, consistent: true },
1732
- ExportDeclaration: { minProperties: 7, multiline: true, consistent: true },
1730
+ ObjectExpression: { minProperties: 10, multiline: true, consistent: true },
1731
+ ObjectPattern: { minProperties: 10, multiline: true, consistent: true },
1732
+ ImportDeclaration: { minProperties: 10, multiline: true, consistent: true },
1733
+ ExportDeclaration: { minProperties: 10, multiline: true, consistent: true },
1733
1734
  },
1734
1735
  ],
1735
1736
 
@@ -1749,7 +1750,7 @@ module.exports = {
1749
1750
  * Requires operator at the beginning of the line in multiline statements 🔧
1750
1751
  * https://eslint.org/docs/latest/rules/operator-linebreak.
1751
1752
  */
1752
- "operator-linebreak": ["error", "before"],
1753
+ "operator-linebreak": ["error", "after", { overrides: { "?": "before", ":": "before" } }],
1753
1754
 
1754
1755
  /**
1755
1756
  * Disallow padding within blocks 🔧
@@ -42,7 +42,7 @@ module.exports = {
42
42
  * Ensures that parameter names in JSDoc match those in the function declaration ✅
43
43
  * https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-param-names.
44
44
  */
45
- "jsdoc/check-param-names": "warn",
45
+ "jsdoc/check-param-names": ["warn", { checkDestructured: false, allowExtraTrailingParamDocs: true }],
46
46
 
47
47
  /**
48
48
  * Ensures that property names in JSDoc are not duplicated on the same block and that nested