@open-turo/eslint-config-react 15.0.0-pr-320.3.1.1 → 15.0.0-pr-320.4.1.1
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/index.cjs
CHANGED
|
@@ -13,8 +13,8 @@ const tseslint = require("typescript-eslint");
|
|
|
13
13
|
* @param {object} options.turo ESLing configuration options for open-turo/eslint-config-typescript. See their documentation for available options.
|
|
14
14
|
* @returns Configuration Array
|
|
15
15
|
*/
|
|
16
|
-
module.exports = (options = {})
|
|
17
|
-
tseslint.config(
|
|
16
|
+
module.exports = function config(options = {}) {
|
|
17
|
+
return tseslint.config(
|
|
18
18
|
{
|
|
19
19
|
extends: turoConfig({
|
|
20
20
|
...options.turo,
|
|
@@ -24,7 +24,8 @@ module.exports = (options = {}) =>
|
|
|
24
24
|
"@testing-library/react",
|
|
25
25
|
"@testing-library/user-event",
|
|
26
26
|
"nock",
|
|
27
|
-
|
|
27
|
+
...(options.turo?.allowModules ?? []),
|
|
28
|
+
],
|
|
28
29
|
}),
|
|
29
30
|
rules: {
|
|
30
31
|
/*
|
|
@@ -110,3 +111,4 @@ module.exports = (options = {}) =>
|
|
|
110
111
|
},
|
|
111
112
|
},
|
|
112
113
|
);
|
|
114
|
+
};
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|