Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

Latest commit

 

History

History
56 lines (40 loc) · 1.21 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.21 KB

@team-lab/eslint-config

This is teamLab's standard ESLint configuration.

これはteamLabの標準ESLint設定です。

各プロジェクトではこの設定をベースにESLintルールを設定してください。

セットアップ

Vanilla

依存パッケージ

yarn add -D eslint @team-lab/eslint-config eslint-plugin-import
# or
npm i -D eslint @team-lab/eslint-config eslint-plugin-import

.eslintrc

extends:
  - '@team-lab/eslint-config'

  # or 省略表記
  # - '@team-lab'

TypeScript

@typescript-eslintの対応バージョンはv1.13.0です。

依存パッケージ

yarn add -D \
  eslint @team-lab/eslint-config eslint-plugin-import \
  "@typescript-eslint/parser@^1.13.0" "@typescript-eslint/eslint-plugin@^1.13.0" \
  eslint-config-typescript typescript
# or
npm i -D \
  eslint @team-lab/eslint-config eslint-plugin-import \
  "@typescript-eslint/parser@^1.13.0" "@typescript-eslint/eslint-plugin@^1.13.0" \
  eslint-config-typescript typescript

.eslintrc

parserOptions:
  project: ./tsconfig.json # tsconfig.json path here
extends:
  - '@team-lab/eslint-config/typescript'