General Typescript ESLint Rules I use.
To use in your project:
yarn add git+https://github.com/adiwajshing/eslint-config
Then create an eslint.config.mjs
like (can also be a yaml or js):
import config from '@adiwajshing/eslint-config'
import { defineConfig } from 'eslint/config';
export default defineConfig(
[
{
extends: config,
files: "src/**/*.{ts, tsx}"
}
]
)
You also need to pass "files" to specify the files to be linted