Skip to content

locol23/eslint-config-everywhere

Repository files navigation

eslint-config-everywhere・MIT License

ESLint config for everywhere

Installation

yarn add -D eslint eslint-config-everywhere

Usage

In your ESLint config file, set the extends property:

Configure

Base

{
  "extends": "everywhere"
}

React

{
  "extends": ["everywhere", "everywhere/react"]
}

TypeScript

{
  "extends": ["everywhere", "everywhere/typescript"]
}

React + TypeScript

{
  "extends": [
    "everywhere",
    "everywhere/react",
    "everywhere/typescript"
  ]
}

Test(Jest + testing-library/react + Playwright)

{
  "extends": ["everywhere/jest", "everywhere/testing-library-react", "everywhere/playwright"]
}

Test(Vitest + testing-library/react + Playwright)

{
  "extends": ["everywhere/vitest", "everywhere/testing-library-react", "everywhere/playwright"]
}

Storybook

{
  "extends": ["everywhere/storybook"]
}

All

{
  "extends": [
    "everywhere",
    "everywhere/react",
    "everywhere/typescript",
    "everywhere/jest",
    "everywhere/testing-library-react",
    "everywhere/playwright",
    "everywhere/storybook"
  ]
}

Run ESLint

eslint /path/to/your_source

Lisence

MIT