/eslint-config

ESLint config for personal TypeScript projects. Uses the RushStack patch to reduce dependency clutter.

Primary LanguageTypeScriptMIT LicenseMIT

@meyfa/eslint-config

CI

ESLint config for personal TypeScript projects.

Usage

Install ESLint, as well as this package (-DE means --save-dev --save-exact):

npm install -DE eslint@9 @meyfa/eslint-config

Then in the eslint.config.js:

import eslintConfig from '@meyfa/eslint-config'

export default [
  ...eslintConfig,
  {
    ignores: ['dist']
  }
]

If needed, override the TypeScript config location (default: ./tsconfig.lint.json):

import eslintConfig from '@meyfa/eslint-config'

export default [
  ...eslintConfig,
  {
    ignores: ['dist']
  },
  {
    languageOptions: {
      parserOptions: {
        project: './tsconfig.lint.json'
      }
    }
  }
]

If the project requires JSDoc for some files, add the following:

import eslintConfig from '@meyfa/eslint-config'
import eslintConfigJsdoc from '@meyfa/eslint-config/jsdoc'

export default [
  ...eslintConfig,
  {
    ignores: ['dist']
  },
  {
    ...eslintConfigJsdoc,
    files: ['src/**/*.ts']
  }
]