eslint-config-reearth
v0.3.6
Published
An extensible shared ESLint config for Re:Earth projects (ESlint v9+)
Downloads
773
Keywords
Readme
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.FlatConfig[] } */
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
- 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.