Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import avoidReverse from "./rules/avoid-reverse.js";
import preferFlatMap from "./rules/prefer-flat-map.js";
import preferFlat from "./rules/prefer-flat.js";

const index = {
const arrayFunctions = {
meta: {
name: "eslint-plugin-array-func",
version: "5.0.1",
Expand All @@ -25,19 +25,19 @@ const index = {
},
configs: {},
};
index.configs.recommended = {
arrayFunctions.configs.recommended = {
name: 'array-func/recommended',
plugins: { "array-func": index },
plugins: { "array-func": arrayFunctions },
rules: {
"array-func/from-map": "error",
"array-func/no-unnecessary-this-arg": "error",
"array-func/prefer-array-from": "error",
"array-func/avoid-reverse": "error",
},
};
index.configs.all = {
arrayFunctions.configs.all = {
name: 'array-func/all',
plugins: { "array-func": index },
plugins: { "array-func": arrayFunctions },
rules: {
"array-func/from-map": "error",
"array-func/no-unnecessary-this-arg": "error",
Expand All @@ -48,4 +48,4 @@ index.configs.all = {
},
};

export default index;
export default arrayFunctions;
Loading