The electron affinity of an element is defined as energy released when an atom gains an electron to become an ion. A greater electron affinity means more energy is released and means that e- is more attracted to the atom.
Watch the sign!
”Energy released” is supposed to be positive, but to follow thermodynamic conventions for exothermic reactions, the sign can be negative in certain contexts.