33 * @author Martin Giger
44 */
55import fromMap from "./rules/from-map" ;
6- import noUnnecessaryThisArg from "./rules/no-unnecessary-this-arg" ;
6+ import noUnnecessaryThisArgument from "./rules/no-unnecessary-this-arg" ;
77import preferArrayFrom from "./rules/prefer-array-from" ;
88import avoidReverse from "./rules/avoid-reverse" ;
99import preferFlatMap from "./rules/prefer-flat-map" ;
@@ -12,33 +12,32 @@ import preferFlat from "./rules/prefer-flat";
1212const index = {
1313 rules : {
1414 "from-map" : fromMap ,
15- "no-unnecessary-this-arg" : noUnnecessaryThisArg ,
15+ "no-unnecessary-this-arg" : noUnnecessaryThisArgument ,
1616 "prefer-array-from" : preferArrayFrom ,
1717 "avoid-reverse" : avoidReverse ,
1818 "prefer-flat-map" : preferFlatMap ,
19- "prefer-flat" : preferFlat ,
19+ "prefer-flat" : preferFlat
2020 } ,
21- configs : {
22- recommended : {
23- plugins : { "array-func" : index } ,
24- rules : {
25- "array-func/from-map" : "error" ,
26- "array-func/no-unnecessary-this-arg" : "error" ,
27- "array-func/prefer-array-from" : "error" ,
28- "array-func/avoid-reverse" : "error"
29- }
30- } ,
31- all : {
32- plugins : { "array-func" : index } ,
33- rules : {
34- "array-func/from-map" : "error" ,
35- "array-func/no-unnecessary-this-arg" : "error" ,
36- "array-func/prefer-array-from" : "error" ,
37- "array-func/avoid-reverse" : "error" ,
38- "array-func/prefer-flat-map" : "error" ,
39- "array-func/prefer-flat" : "error"
40- }
41- }
21+ configs : { }
22+ } ;
23+ index . configs . recommended = {
24+ plugins : { "array-func" : index } ,
25+ rules : {
26+ "array-func/from-map" : "error" ,
27+ "array-func/no-unnecessary-this-arg" : "error" ,
28+ "array-func/prefer-array-from" : "error" ,
29+ "array-func/avoid-reverse" : "error"
30+ }
31+ } ;
32+ index . configs . all = {
33+ plugins : { "array-func" : index } ,
34+ rules : {
35+ "array-func/from-map" : "error" ,
36+ "array-func/no-unnecessary-this-arg" : "error" ,
37+ "array-func/prefer-array-from" : "error" ,
38+ "array-func/avoid-reverse" : "error" ,
39+ "array-func/prefer-flat-map" : "error" ,
40+ "array-func/prefer-flat" : "error"
4241 }
4342} ;
4443
0 commit comments