Shareable ESLint config for Availity projects designed to be used with Prettier and Typescript
This package is compatible with v18 and v20 of Node.
npm install --save-dev eslint-config-availityyarn add --dev eslint-config-availityIf you need TypeScript support then you will also need to include
typescriptas adevDependency
- eslint-plugin-import
- eslint-plugin-jest
- eslint-plugin-jsx-a11y
- eslint-plugin-promise
- eslint-plugin-react
- eslint-plugin-react-hooks
- eslint-plugin-unicorn
Typescript is supported in both configurations
# .eslintrc.yaml
extends: availity# .eslintrc.yaml
extends: availity/browserAllows root imports in @availity/workflow projects.
# .eslintrc.yaml
extends: availity/workflowIf you are using TypeScript then you can take advantage of root imports with your
tsconfig.json
Recommended settings
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5"
}yarn- Make necessary changes
- Update
README.mdandrules.test.jsif necessary - Commit your changes using the conventional-commits format
- Push your changes and open a PR
- A new version will be deployed automatically through the CI process
Open source software components distributed or made available in the Availity Materials are licensed to Company under the terms of the applicable open source license agreements, which may be found in text files included in the Availity Materials.