@forumone/eslint-config-react
v3.0.5
Published
Forum One's ESLint configuration for React
Readme
Forum One React Coding Style
Our JavaScript code style conventions are based on:
- ESLint's Recommended Config
- TypeScript ESLint
- Prettier
- Prettier Plugin: Organize Imports with customizations for specific environments and team practices.
For best results, mix with a base style guide of your choice. We recommend eslint-config-forumone-es5:
import { defineConfig } from 'eslint/config';
import f1Config from 'eslint-config-forumone-es5';
import f1ReactConfig from 'eslint-config-forumone-react';
const config = defineConfig([
{
extends: [f1Config, f1ReactConfig]
}
]);
export default config;Usage
- Run
eslint-config-forumone-react. - Add
extends: 'forumone-es5'to your ESLint configuration file.
