@@ -85,12 +85,12 @@ const mappedArray = arr.map((t) => t.id);
8585To use this rule, your ` eslint.config.js ` should at least contain the following:
8686
8787``` js
88- import arrayFunc from " eslint-plugin-array-func" ;
88+ import arrayFunctions from " eslint-plugin-array-func" ;
8989
9090export default [
9191 {
9292 plugins: {
93- " array-func" : arrayFunc
93+ " array-func" : arrayFunctions
9494 },
9595 rules: {
9696 " array-func/from-map" : " error"
@@ -179,12 +179,12 @@ array.filter(this.isGood, this);
179179To use this rule, your ` eslint.config.js ` should at least contain the following:
180180
181181``` js
182- import arrayFunc from " eslint-plugin-array-func" ;
182+ import arrayFunctions from " eslint-plugin-array-func" ;
183183
184184export default [
185185 {
186186 plugins: {
187- " array-func" : arrayFunc
187+ " array-func" : arrayFunctions
188188 },
189189 rules: {
190190 " array-func/no-unnecessary-this-arg" : " error"
@@ -229,12 +229,12 @@ const characterArray = Array.from("string");
229229To use this rule, your ` eslint.config.js ` should at least contain the following:
230230
231231``` js
232- import arrayFunc from " eslint-plugin-array-func" ;
232+ import arrayFunctions from " eslint-plugin-array-func" ;
233233
234234export default [
235235 {
236236 plugins: {
237- " array-func" : arrayFunc
237+ " array-func" : arrayFunctions
238238 },
239239 rules: {
240240 " array-func/prefer-array-from" : " error"
@@ -281,12 +281,12 @@ const reverseMap = array.reverse().map((r) => r + 1);
281281To use this rule, your ` eslint.config.js ` should at least contain the following:
282282
283283``` js
284- import arrayFunc from " eslint-plugin-array-func" ;
284+ import arrayFunctions from " eslint-plugin-array-func" ;
285285
286286export default [
287287 {
288288 plugins: {
289- " array-func" : arrayFunc
289+ " array-func" : arrayFunctions
290290 },
291291 rules: {
292292 " array-func/avoid-reverse" : " error"
@@ -334,12 +334,12 @@ const flatWithDepth = array.map((p) => p).flat(99);
334334To use this rule, your ` eslint.config.js ` should at least contain the following:
335335
336336``` js
337- import arrayFunc from " eslint-plugin-array-func" ;
337+ import arrayFunctions from " eslint-plugin-array-func" ;
338338
339339export default [
340340 {
341341 plugins: {
342- " array-func" : arrayFunc
342+ " array-func" : arrayFunctions
343343 },
344344 rules: {
345345 " array-func/prefer-flat-map" : " error"
@@ -385,12 +385,12 @@ const otherReduce = array.reduce((p, n) => n + p, 0);
385385To use this rule, your ` eslint.config.js ` should at least contain the following:
386386
387387``` js
388- import arrayFunc from " eslint-plugin-array-func" ;
388+ import arrayFunctions from " eslint-plugin-array-func" ;
389389
390390export default [
391391 {
392392 plugins: {
393- " array-func" : arrayFunc
393+ " array-func" : arrayFunctions
394394 },
395395 rules: {
396396 " array-func/prefer-flat" : " error"
@@ -417,10 +417,10 @@ Rule | Error level | Fixable
417417To enable this configuration, import the plugin and add the config to your eslint config array:
418418
419419``` js
420- import arrayFunc from " eslint-plugin-array-func" ;
420+ import arrayFunctions from " eslint-plugin-array-func" ;
421421
422422export default [
423- arrayFunc .configs .recommended ,
423+ arrayFunctions .configs .recommended ,
424424];
425425```
426426
@@ -444,10 +444,10 @@ Rule | Error level | Fixable
444444To enable this configuration, import the plugin and add the config to your eslint config array:
445445
446446``` js
447- import arrayFunc from " eslint-plugin-array-func" ;
447+ import arrayFunctions from " eslint-plugin-array-func" ;
448448
449449export default [
450- arrayFunc .configs .all ,
450+ arrayFunctions .configs .all ,
451451];
452452```
453453
0 commit comments