@prowise/eslint-config-linting-rules 2.1.5 → 2.1.7
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/front-react.js +1 -0
- package/next.js +19 -0
- package/package.json +1 -1
- package/rules/plugin-import-rules.js +1 -1
package/front-react.js
CHANGED
|
@@ -20,6 +20,7 @@ export default [
|
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
rules: {
|
|
23
|
+
"style/quote-props": ["error", "as-needed", { keywords: false, unnecessary: true, numbers: false }],
|
|
23
24
|
// override the default typescript rule to allow PascalCase function names for function components in React
|
|
24
25
|
"@typescript-eslint/naming-convention": [
|
|
25
26
|
"error",
|
package/next.js
CHANGED
|
@@ -21,5 +21,24 @@ export default [
|
|
|
21
21
|
SharedArrayBuffer: "readonly",
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
|
+
rules: {
|
|
25
|
+
"style/quote-props": ["error", "as-needed", { keywords: false, unnecessary: true, numbers: false }],
|
|
26
|
+
// override the default typescript rule to allow PascalCase function names for function components in React
|
|
27
|
+
"@typescript-eslint/naming-convention": [
|
|
28
|
+
"error",
|
|
29
|
+
{
|
|
30
|
+
selector: "variable",
|
|
31
|
+
format: ["camelCase", "PascalCase", "UPPER_CASE"],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
selector: "function",
|
|
35
|
+
format: ["camelCase", "PascalCase"],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
selector: "typeLike",
|
|
39
|
+
format: ["PascalCase"],
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
24
43
|
},
|
|
25
44
|
];
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@prowise/eslint-config-linting-rules","version":"2.1.
|
|
1
|
+
{"name":"@prowise/eslint-config-linting-rules","version":"2.1.7","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"}}
|
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
17
17
|
* https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/consistent-type-specifier-style.md
|
|
18
18
|
*/
|
|
19
|
-
"import/consistent-type-specifier-style": ["
|
|
19
|
+
"import/consistent-type-specifier-style": ["warn", "prefer-inline"],
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Ensure default import coupled with default export
|