0.1.1 • Published 5 years ago

@team-lab/eslint-config v0.1.1

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

@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'