Skip to content

reearth/eslint-config-reearth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

731a540 · Feb 25, 2025

History

50 Commits
Jan 6, 2025
Feb 25, 2025
Jan 6, 2025
Jul 15, 2022
Jan 6, 2025
Feb 25, 2025
Aug 26, 2024
Aug 26, 2024
Aug 26, 2024
Aug 26, 2024
Feb 25, 2025
Aug 26, 2024
Feb 25, 2025
Feb 25, 2025
Feb 25, 2025
Feb 25, 2025
Aug 26, 2024
Feb 25, 2025
Feb 25, 2025
Aug 26, 2024
Feb 25, 2025

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