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 eslint prettier eslint-config-reearth --save-dev
yarn add eslint prettier eslint-config-reearth --dev

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];
  • 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 ."
  }
}

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