Echoing @Omnonmnomnm's point: the notion of "integral" in Fourier transforms very often needs to be an "extension by continuity" (in a topology that may vary, depending on context), so is in any case absolutely not any kind of Riemann, Lebesgue, or other "integral". Nevertheless, if/when we know what kind of limit the integrand is, and in what sense we want the outcome to have a sense... it is often possible, in real-life situations, to attach useful meaning to "divergent" integrals or sums which in a strict, late 19th-century interpretation, would be meaningless.
That is, "integral" is not literal integral, but is a linear map from one topological vector space to another, sometimes just to scalars. It should be continuous in relevant topologies... though the relevant topologies are not always obvious, and not always classical, not always related to "pointwise convergence", etc.
So it's not that one "defines" the Fourier transform of $1$ and $\delta$, but that one determines what these are, in the extended sense of Fourier transform, and then @Omn.'s computation is what you want.