@prowise/eslint-config-linting-rules 3.0.9 → 3.0.10

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":"3.0.9","description":"Default Prowise linting rules for npm packages.","main":"index.js","type":"module","exports":{"./typescript":"./typescript.js","./backend":"./backend.js","./front-react":"./front-react.js","./front-solid":"./front-solid.js","./next":"./next.js"},"scripts":{"lint":"eslint","test":"node tests/*.test.js","inspect":"eslint --inspect-config"},"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":{"@eslint-react/eslint-plugin":"^5.23.3","@htmlacademy/eslint-plugin-jsx-a11y":"^6.11.0","@stylistic/eslint-plugin":"^5.10.0","@vitest/eslint-plugin":"^1.6.27","confusing-browser-globals":"^1.0.11","eslint":"^10.11.0","eslint-import-resolver-typescript":"^4.4.5","eslint-plugin-import-x":"^4.17.1","eslint-plugin-jsdoc":"^65.0.1","eslint-plugin-n":"^18.4.0","eslint-plugin-prefer-arrow-functions":"^3.10.2","globals":"^17.13.0","nanospinner":"^1.2.2","typescript-eslint":"^8.71.0"},"devDependencies":{"@eslint/config-inspector":"^3.5.0"},"overrides":{"minimatch":"^10.2.5"},"allowScripts":{"unrs-resolver@1.12.2":true}}
1
+ {"name":"@prowise/eslint-config-linting-rules","version":"3.0.10","description":"Default Prowise linting rules for npm packages.","main":"index.js","type":"module","exports":{"./typescript":"./typescript.js","./backend":"./backend.js","./front-react":"./front-react.js","./front-solid":"./front-solid.js","./next":"./next.js"},"scripts":{"lint":"eslint","test":"node tests/*.test.js","inspect":"eslint --inspect-config"},"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":{"@eslint-react/eslint-plugin":"^5.28.4","@htmlacademy/eslint-plugin-jsx-a11y":"^6.11.0","@stylistic/eslint-plugin":"^5.10.0","@vitest/eslint-plugin":"^1.6.27","confusing-browser-globals":"^1.0.11","eslint":"^10.13.0","eslint-import-resolver-typescript":"^4.4.5","eslint-plugin-import-x":"^4.17.1","eslint-plugin-jsdoc":"^65.4.0","eslint-plugin-n":"^18.5.0","eslint-plugin-prefer-arrow-functions":"^3.10.2","globals":"^17.13.0","nanospinner":"^1.2.2","typescript-eslint":"^8.72.0"},"devDependencies":{"@eslint/config-inspector":"^3.5.0"},"overrides":{"minimatch":"^10.2.5"},"allowScripts":{"unrs-resolver@1.12.2":true}}
@@ -184,16 +184,18 @@ export default {
184
184
  checkGetters: true,
185
185
  checkSetters: true,
186
186
  require: {
187
- ClassDeclaration: false,
187
+ ClassDeclaration: true,
188
188
  ClassExpression: true,
189
189
  FunctionDeclaration: true,
190
190
  FunctionExpression: true,
191
191
  MethodDefinition: true,
192
192
  },
193
193
  contexts: [
194
- // @see https://ts-ast-viewer.com/#
195
194
  "ClassProperty",
195
+ "PropertyDefinition",
196
196
  "FunctionDeclaration",
197
+ "TSInterfaceDeclaration",
198
+ "TSPropertySignature",
197
199
  "VariableStatement",
198
200
  ],
199
201
  },
@@ -19,7 +19,7 @@ export default {
19
19
  parserOptions: {
20
20
  ecmaVersion: "latest",
21
21
  sourceType: "module",
22
- projectService: true,
22
+ projectService: { allowDefaultProject: ["*.ts", "*.js"] },
23
23
  },
24
24
  },
25
25