@btmills/eslint-config-typescript
v0.0.2
Published
My personal ESLint shareable configurations.
Downloads
8
Readme
@btmills/eslint-config-typescript
My personal ESLint shareable configurations.
Installation
npm install --save-dev eslint @btmills/eslint-config-js @btmills/eslint-config-typescriptUsage
Add the following to your project's eslint.config.ts:
import { defineConfig } from 'eslint/config';
import { es2024 } from '@btmills/eslint-config-js';
import {
typescript,
typescriptProject,
} from '@btmills/eslint-config-typescript';
export default defineConfig([
// Start here
{
name: 'TypeScript (without type checking)',
extends: [
es2024, // Or any other ES version
typescript,
],
files: [
// ...
],
// ...more config as needed
},
// Optional
{
name: 'TypeScript (with type checking)',
extends: [typescriptProject],
languageOptions: {
parserOptions: {
tsconfigRootDir: import.meta.dirname,
},
},
files: [
// ...
],
// ...more config as needed
},
]);License
MIT © Brandon Mills
