diff --git a/index.js b/index.js index ba4f709..e27e934 100644 --- a/index.js +++ b/index.js @@ -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", @@ -25,9 +25,9 @@ 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", @@ -35,9 +35,9 @@ index.configs.recommended = { "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", @@ -48,4 +48,4 @@ index.configs.all = { }, }; -export default index; +export default arrayFunctions;