Skip to content
Merged
Changes from 1 commit
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 preferFlatMap from "./rules/prefer-flat-map.js";
import preferFlat from "./rules/prefer-flat.js";

const index = {
const arrayFunc = {

Check warning on line 12 in index.js

View workflow job for this annotation

GitHub Actions / test

The variable `arrayFunc` should be named `arrayFunction`. A more descriptive name will do too
Comment thread
freaktechnik marked this conversation as resolved.
Outdated
meta: {
name: "eslint-plugin-array-func",
version: "5.0.1",
Expand All @@ -25,19 +25,19 @@
},
configs: {},
};
index.configs.recommended = {
arrayFunc.configs.recommended = {
name: 'array-func/recommended',
plugins: { "array-func": index },
plugins: { "array-func": arrayFunc },
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 = {
arrayFunc.configs.all = {
name: 'array-func/all',
plugins: { "array-func": index },
plugins: { "array-func": arrayFunc },
rules: {
"array-func/from-map": "error",
"array-func/no-unnecessary-this-arg": "error",
Expand All @@ -48,4 +48,4 @@
},
};

export default index;
export default arrayFunc;
Loading