@meyfa/eslint-config
v8.0.1
Published
ESLint config for personal TypeScript projects.
Downloads
7,185
Readme
@meyfa/eslint-config
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']
}
]