0.2.0 • Published 6 months ago
@m-social/eslint-config-typescript v0.2.0
@m-social/eslint-config-typescript
ESLint config for TypeScript used at M-Social
Installation
Install the package via pnpm (or use any other package manager):
pnpm i -D @m-social/eslint-config-typescriptAlso don't forget to install eslint peer dependency
Usage
Create an eslint.config.js (or eslint.config.mjs) file in your project root with the following content:
import typescriptConfig from "@m-social/eslint-config-typescript";
import { defineConfig } from "eslint/config";
export default defineConfig(typescriptConfig, {
languageOptions: {
parserOptions: {
tsconfigRootDir: import.meta.dirname,
},
},
});Note, that you should manually add tsconfigRootDir to make typed linting work