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

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.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"}}
1
+ {"name":"@prowise/eslint-config-linting-rules","version":"1.0.5","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"}}
@@ -192,12 +192,13 @@ module.exports = {
192
192
  /**
193
193
  * Require explicit accessibility modifiers on class properties and methods 🔧 💡
194
194
  * https://typescript-eslint.io/rules/explicit-member-accessibility.
195
- * Defaults to public, other accessability must be set explicitly!
195
+ * Accessibility should be explicit to protect accidentally exposing properties
196
+ * and functions by missing modifier and using default(public).
196
197
  */
197
198
  "@typescript-eslint/explicit-member-accessibility": [
198
199
  "error",
199
200
  {
200
- accessibility: "no-public",
201
+ accessibility: "explicit",
201
202
  },
202
203
  ],
203
204