ESLint plugin
An eslint plugin containing our shared configuration based on eslint-config-airbnb and eslint-config-airbnb-typescript.
Usage
Add plugin:@bitrise/config
to extends
in your eslint config. As this config uses @typescript-eslint
you'll need to configure parserOptions.project
with the tsconfig.json
file(s) you'd like to use.
Details
- uses eslint-plugin-prettier to format code, using an embedded configuration, meaning no .prettierrc is needed
- overrides a few react related rules
- adds a single rule,
@bitrise/ban-react-fc
- This is a simple wrapper using
@typescript-eslint/ban-types
to prevent the usage of React.FC
and React.FunctionComponent
. This way consumers of the configuration can still use this rule to ban other types without having to copy-paste these options.
- includes configurations from
eslint-plugin-testing-library
and eslint-plugin-jest
to enforce rules regarding testing