Skip to content

reearth/eslint-config-reearth

Repository files navigation

eslint-config-reearth

An extensible shared ESLint config for Re:Earth projects (ESlint v9+)

How to install

npm install --save-dev eslint prettier eslint-config-reearth
yarn add --dev eslint prettier eslint-config-reearth
pnpm add -D eslint prettier eslint-config-reearth

Then edit your ESLint config file:

ESLint config (eslint.config.mjs)

import config from "eslint-config-reearth";

/** @type { import("eslint").Linter.Config[] } */
export default [...config("projectName", { reactRecommended: true })];
  • Only config that uses .mjs is supported.
  • Legacy config (.eslintrc) is no longer supported.

package.json scripts (example)

{
  "scripts": {
    "lint": "eslint .",
    "fix": "eslint --fix .",
    "format": "prettier --write ."
  }
  "prettier": "eslint-config-reearth/.prettierrc.json"
}

VSCode settings

See settings.json and extensions.json.

Config

NOTE: Using Prettier via ESLint is no longer supported. Use prettier-vscode.

About

ESLint config for Re:Earth projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published