The Preferred eslint rules for TypeScript.
npm i @opp100/eslint-config
In .eslintrc.js
module.exports = {
extends: ['@opp100/eslint-config/ts-react'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
ignorePatterns: ['vite.*.ts', '**/dist/*', '.eslintrc.js'],
env: {
browser: true,
node: true,
}
// ...
};