An extensible shared ESLint config for Re:Earth projects (ESlint v9+)
npm install eslint prettier eslint-config-reearth --save-dev
yarn add eslint prettier eslint-config-reearth --dev
Then edit your ESLint config file:
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.
{
"scripts": {
"lint": "eslint .",
"fix": "eslint --fix .",
"format": "prettier --write ."
}
}
See settings.json and extensions.json.
- reearth
- reearth/common
- reearth/commonjs
- reearth/typescript
- reearth/node
- reearth/node-commonjs
- reearth/noprettier
- reearth/react
- reearth/test
- reearth/test-react
NOTE: Using Prettier via ESLint is no longer supported. Use prettier-vscode.