2.0.8 • Published 12 months ago

@jihyunlab/eslint-config v2.0.8

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

@jihyunlab/eslint-config

Version Downloads Last commit License Linter code style: prettier\ Build Lint Prettier

@jihyunlab/eslint-config provides ESLint config for TypeScript.

Installation

npm i --save-dev @jihyunlab/eslint-config eslint @eslint/js @types/eslint__js typescript typescript-eslint

Configuration

Configure ESLint

Create and edit the eslint.config.mjs file.

├─ eslint.config.mjs
└─ ...
import eslint from '@eslint/js';
import tsEslint from 'typescript-eslint';
import { jihyunlabEslintConfig } from '@jihyunlab/eslint-config';

export default tsEslint.config(
  {
    ignores: ['node_modules', 'dist', 'build', 'coverage'],
  },
  {
    languageOptions: {
      parserOptions: {
        project: './tsconfig.eslint.json',
        tsconfigRootDir: import.meta.dirname,
      },
    },
  },
  {
    files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],
    extends: [
      eslint.configs.recommended,
      ...tsEslint.configs.recommendedTypeChecked,
      jihyunlabEslintConfig,
    ],
  }
);

Configure TypeScript for ESLint

Create and edit the tsconfig.eslint.json file.

├─ tsconfig.eslint.json
└─ ...
{
  "extends": "./tsconfig.json",
  "include": ["**/*.ts", "**/*.tsx", "**/*.cts", "**/*.mts"],
  "exclude": ["node_modules", "dist", "build", "coverage"]
}

Credits

Authored and maintained by JihyunLab <info@jihyunlab.com>

License

Open source licensed as MIT.

2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.8

12 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago