eslint-config-reearth

0.3.8 • Public • Published

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 install -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 ."
  }
}

VSCode settings

See settings.json and extensions.json.

Config

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

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-reearth

Weekly Downloads

275

Version

0.3.8

License

MIT

Unpacked Size

11 kB

Total Files

21

Last publish

Collaborators

  • rot1024
  • darwin-education
  • keiya01
  • kawaite
  • airslice