@prowise/eslint-config-linting-rules 2.1.6 → 2.1.8

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.
Files changed (2) hide show
  1. package/next.js +22 -0
  2. package/package.json +1 -1
package/next.js CHANGED
@@ -1,4 +1,6 @@
1
1
  import globals from "globals";
2
+ // eslint-disable-next-line import/no-unresolved
3
+ import typescriptPlugin from "typescript-eslint";
2
4
  import base from "./base.js";
3
5
  import next from "./rules/plugin-next-rules.js";
4
6
  import react from "./rules/plugin-react-rules.js";
@@ -12,6 +14,7 @@ export default [
12
14
  next,
13
15
  vitest,
14
16
  {
17
+ plugins: { "@typescript-eslint": typescriptPlugin.plugin },
15
18
  settings: { react: { version: "detect" } },
16
19
  languageOptions: {
17
20
  globals: {
@@ -21,5 +24,24 @@ export default [
21
24
  SharedArrayBuffer: "readonly",
22
25
  },
23
26
  },
27
+ rules: {
28
+ "style/quote-props": ["error", "as-needed", { keywords: false, unnecessary: true, numbers: false }],
29
+ // override the default typescript rule to allow PascalCase function names for function components in React
30
+ "@typescript-eslint/naming-convention": [
31
+ "error",
32
+ {
33
+ selector: "variable",
34
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
35
+ },
36
+ {
37
+ selector: "function",
38
+ format: ["camelCase", "PascalCase"],
39
+ },
40
+ {
41
+ selector: "typeLike",
42
+ format: ["PascalCase"],
43
+ },
44
+ ],
45
+ },
24
46
  },
25
47
  ];
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@prowise/eslint-config-linting-rules","version":"2.1.6","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","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":{"@next/eslint-plugin-next":"^15.1.3","@stylistic/eslint-plugin":"^2.12.1","confusing-browser-globals":"^1.0.11","eslint":"^9.17.0","eslint-import-resolver-typescript":"^3.7.0","eslint-plugin-file-progress":"^3.0.1","eslint-plugin-import-x":"^4.6.1","eslint-plugin-jest":"^28.10.0","eslint-plugin-jsdoc":"^50.6.1","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-n":"^17.15.1","eslint-plugin-prefer-arrow-functions":"^3.4.1","eslint-plugin-react":"^7.37.3","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-solid":"^0.14.5","eslint-plugin-vitest":"^0.5.4","globals":"^15.14.0","typescript-eslint":"^8.19.1"},"devDependencies":{"@eslint/config-inspector":"^0.7.0"}}
1
+ {"name":"@prowise/eslint-config-linting-rules","version":"2.1.8","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","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":{"@next/eslint-plugin-next":"^15.1.3","@stylistic/eslint-plugin":"^2.12.1","confusing-browser-globals":"^1.0.11","eslint":"^9.17.0","eslint-import-resolver-typescript":"^3.7.0","eslint-plugin-file-progress":"^3.0.1","eslint-plugin-import-x":"^4.6.1","eslint-plugin-jest":"^28.10.0","eslint-plugin-jsdoc":"^50.6.1","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-n":"^17.15.1","eslint-plugin-prefer-arrow-functions":"^3.4.1","eslint-plugin-react":"^7.37.3","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-solid":"^0.14.5","eslint-plugin-vitest":"^0.5.4","globals":"^15.14.0","typescript-eslint":"^8.19.1"},"devDependencies":{"@eslint/config-inspector":"^0.7.0"}}