@prowise/eslint-config-linting-rules 2.3.0 → 2.3.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":"2.3.
|
|
1
|
+
{"name":"@prowise/eslint-config-linting-rules","version":"2.3.2","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/jsx-pascal-case-rule.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":{"@next/eslint-plugin-next":"^15.3.5","@stylistic/eslint-plugin":"^5.1.0","@vitest/eslint-plugin":"^1.3.4","confusing-browser-globals":"^1.0.11","eslint":"^9.30.1","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-file-progress":"^3.0.2","eslint-plugin-import-x":"^4.16.1","eslint-plugin-jsdoc":"^51.3.4","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-n":"^17.21.0","eslint-plugin-prefer-arrow-functions":"^3.6.2","eslint-plugin-react":"^7.37.5","eslint-plugin-react-hooks":"^5.2.0","eslint-plugin-solid":"^0.14.5","globals":"^16.3.0","typescript-eslint":"^8.36.0"},"devDependencies":{"@eslint/config-inspector":"^1.1.0"}}
|
|
@@ -126,7 +126,7 @@ export default {
|
|
|
126
126
|
* Forbid cyclical dependencies between modules
|
|
127
127
|
* https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md.
|
|
128
128
|
*/
|
|
129
|
-
"import/no-cycle": ["error", {
|
|
129
|
+
"import/no-cycle": ["error", { ignoreExternal: true }],
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* Forbid default exports. This is a terrible rule, do not use it.
|
|
@@ -393,7 +393,7 @@ export default {
|
|
|
393
393
|
* Requires operator at the beginning of the line in multiline statements 🔧
|
|
394
394
|
* https://eslint.style/rules/operator-linebreak.
|
|
395
395
|
*/
|
|
396
|
-
"style/operator-linebreak": ["error", "after", { overrides: { "?": "before", ":": "before" } }],
|
|
396
|
+
"style/operator-linebreak": ["error", "after", { overrides: { "?": "before", ":": "before", "|": "ignore" } }],
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
399
|
* Disallow padding within blocks 🔧
|
|
@@ -17,7 +17,10 @@ export default {
|
|
|
17
17
|
languageOptions: {
|
|
18
18
|
parser: typescriptPlugin.parser,
|
|
19
19
|
parserOptions: {
|
|
20
|
-
|
|
20
|
+
ecmaVersion: "latest",
|
|
21
|
+
sourceType: "module",
|
|
22
|
+
projectService: true,
|
|
23
|
+
tsconfigRootDir: import.meta.dirname,
|
|
21
24
|
},
|
|
22
25
|
},
|
|
23
26
|
|
|
@@ -530,7 +533,7 @@ export default {
|
|
|
530
533
|
* Enforce non-null assertions over explicit type casts 🔒 🔧 💭
|
|
531
534
|
* https://typescript-eslint.io/rules/non-nullable-type-assertion-style.
|
|
532
535
|
*/
|
|
533
|
-
"@typescript-eslint/non-nullable-type-assertion-style": "
|
|
536
|
+
// "@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
534
537
|
|
|
535
538
|
/**
|
|
536
539
|
* Require or disallow parameter properties in class constructors
|
|
@@ -705,12 +708,6 @@ export default {
|
|
|
705
708
|
},
|
|
706
709
|
],
|
|
707
710
|
|
|
708
|
-
/**
|
|
709
|
-
* Require type annotations in certain places
|
|
710
|
-
* https://typescript-eslint.io/rules/typedef.
|
|
711
|
-
*/
|
|
712
|
-
"@typescript-eslint/typedef": "warn",
|
|
713
|
-
|
|
714
711
|
/**
|
|
715
712
|
* Enforce unbound methods are called with their expected scope ✅ 💭
|
|
716
713
|
* While this rule should be enabled, it gives to many problems with external libraries
|
|
@@ -743,20 +740,5 @@ export default {
|
|
|
743
740
|
tsx: "never",
|
|
744
741
|
},
|
|
745
742
|
],
|
|
746
|
-
|
|
747
|
-
// "import/no-extraneous-dependencies": [
|
|
748
|
-
// importRules.rules["import/no-extraneous-dependencies"][0],
|
|
749
|
-
// {
|
|
750
|
-
// ...importRules.rules["import/no-extraneous-dependencies"][1],
|
|
751
|
-
// devDependencies: importRules.rules["import/no-extraneous-dependencies"][1].devDependencies.reduce(
|
|
752
|
-
// (result, devDep) => {
|
|
753
|
-
// const toAppend = [devDep];
|
|
754
|
-
// const devDepWithTs = devDep.replace(/\bjs(x?)\b/g, "ts$1");
|
|
755
|
-
// if (devDepWithTs !== devDep) toAppend.push(devDepWithTs);
|
|
756
|
-
// return [...result, ...toAppend];
|
|
757
|
-
// },
|
|
758
|
-
// ),
|
|
759
|
-
// },
|
|
760
|
-
// ],
|
|
761
743
|
},
|
|
762
744
|
};
|