@forumone/eslint-config-es5
v4.0.0
Published
Forum One's ESLint configuration for JavaScript and TypeScript
Readme
Forum One JavaScript Coding Style
Our JavaScript code style conventions are based on:
- ESLint's Recommended Config
- TypeScript ESLint
- Prettier
- Prettier Plugin: Organize Imports
- Storybook ESLint with customizations for specific environments and team practices.
Usage
- Run
npm install eslint-config-forumone-es5. - Add
extends: 'forumone-es5'to your ESLint configuration file.
Storybook
Storybook-specific linting (via eslint-plugin-storybook) is not included by
default, so projects that don't use Storybook aren't required to install it.
For projects that do use Storybook:
- Run
npm install --save-dev eslint-plugin-storybook storybook. - Import and spread the
/storybooksubpath into your flat config alongside the base config:
import forumoneEs5 from "@forumone/eslint-config-es5";
import forumoneEs5Storybook from "@forumone/eslint-config-es5/storybook";
export default [...forumoneEs5, ...forumoneEs5Storybook];