Skip to content

Commit f7d73ae

Browse files
committed
fix: lint3
1 parent 24f4da6 commit f7d73ae

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parserOptions": {
3-
"sourceType": "script"
3+
"sourceType": "module"
44
},
55
"rules": {
66
"unicorn/prefer-module": 0

index.js

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Giger
44
*/
55
import fromMap from "./rules/from-map";
6-
import noUnnecessaryThisArg from "./rules/no-unnecessary-this-arg";
6+
import noUnnecessaryThisArgument from "./rules/no-unnecessary-this-arg";
77
import preferArrayFrom from "./rules/prefer-array-from";
88
import avoidReverse from "./rules/avoid-reverse";
99
import preferFlatMap from "./rules/prefer-flat-map";
@@ -12,33 +12,32 @@ import preferFlat from "./rules/prefer-flat";
1212
const 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

Comments
 (0)