Under the assumption of a linear function, we present a new exact solution for an anisotropic and charged stars in the background of -gravity. By considering ansatz for the metric potential, charge function, and anisotropy function, we have arrived at an exact and nonsingular solution to the field problem. The anisotropy and charge function are discovered to be contingent upon the existence of the torsion scalar, and the evolution of the charge and anisotropy of the stellar matter is significantly influenced by variations in the torsion parameter . The features of anisotropy and charged compact star at the boundary are examined by making the interior metric solution correspond to the exterior Reissner-Nordström-de Sitter solution. The physical validity of the derived quantities is shown graphically, and the energy conditions are found to be satisfied. The causality condition, hydrostatic stable equilibrium, and adiabatic stability are also verified for the chosen values of the torsion parameter. The relations are analyzed for the charged and anisotropic stellar configurations in -gravity. It is found that increasing values of the torsion parameter enhance the maximum mass of the star while increasing values of the charge parameter decrease the maximum mass. The influence of anisotropy via increasing the torsion parameter could be a probable interpretation of the maximum masses exceeding 2.5 , as observed in the case of the secondary companion of GW190814. Interestingly, our study sheds light on the characteristic of non-singular solutions to the field equations in -gravity with linear .