8.0.0 • Published 9 months ago

@meyfa/eslint-config v8.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@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']
  }
]
8.0.0

9 months ago

6.1.0

12 months ago

6.0.0

1 year ago

7.0.0

12 months ago

5.1.0

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

3.0.1

2 years ago

2.1.2

3 years ago

3.0.0

3 years ago

2.1.1

3 years ago

2.0.2

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago