Rim glass with kosher salt.
In a shaker with ice, add tequila, pineapple juice, triple sec and lime juice. Shake vigorously and pour into rimmed glass. Garnish with lime and pineapple wedge, if desired.