@bahaifaith/eslint-plugin
v2.2.0
Published
Unified eslint plugin for all @theBahaiFaith projects
Downloads
356
Maintainers
Readme

Unified eslint plugin for all @thebahaifaith projects.
This package is openly published in the npm registry. Be cautions when making changes.
Plugin Installation
1. Install ESLint
$ pnpm add --save-dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser1.5 If using React, install eslint-plugin-react
$ pnpm add --save-dev eslint-plugin-react2. Install @bahaifaith/eslint-plugin
$ pnpm add --save-dev @bahaifaith/eslint-pluginUsage
ESLint 9 uses the flat config format. Add @bahaifaith/eslint-plugin to your eslint.config.js or eslint.config.mjs file.
Recommended Configuration
// eslint.config.js
import bahaifaith from "@bahaifaith/eslint-plugin";
export default [
...bahaifaith.configs.recommended,
{
languageOptions: {
parserOptions: {
project: ["./tsconfig.json"]
}
}
}
];Recommended Configuration (React)
// eslint.config.js
import bahaifaith from "@bahaifaith/eslint-plugin";
export default [
...bahaifaith.configs["react-recommended"],
{
languageOptions: {
parserOptions: {
project: ["./tsconfig.json"]
}
}
}
];Note: react-recommended already extends recommended so there is no need to include both.
