Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-availity

Availity1.1kMIT10.0.7

Shareable ESLint config for Availity projects

eslint, eslintconfig, availity

readme

eslint-config-availity

Shareable ESLint config for Availity projects designed to be used with Prettier and Typescript

License NPM Link GitHub Workflow Status

Installation

This package is compatible with v18 and v20 of Node.

NPM

npm install --save-dev eslint-config-availity

Yarn

yarn add --dev eslint-config-availity

If you need TypeScript support then you will also need to include typescript as a devDependency

Features

Configs

Plugins

TypeScript

Usage

Typescript is supported in both configurations

Node w/ optional Typescript

# .eslintrc.yaml
extends: availity

Browser (React) w/ Typescript

# .eslintrc.yaml
extends: availity/browser

Workflow

Allows root imports in @availity/workflow projects.

# .eslintrc.yaml
extends: availity/workflow

If you are using TypeScript then you can take advantage of root imports with your tsconfig.json

Prettier

Recommended settings

{
    "printWidth": 120,
    "singleQuote": true,
    "trailingComma": "es5"
}

Contributing

  • yarn
  • Make necessary changes
  • Update README.md and rules.test.js if 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

Disclaimer

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.

License

MIT

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

10.0.7 (2025-04-14)

10.0.6 (2025-04-11)

10.0.5 (2024-11-19)

10.0.4 (2024-10-03)

10.0.3 (2024-09-19)

10.0.2 (2024-06-20)

10.0.1 (2024-05-09)

Bug Fixes

10.0.0 (2024-05-08)

⚠ BREAKING CHANGES

  • drop support of Node 16 and lower
  • Node ^18.18.0 or ^20 is required

Features

  • update to eslint 8 and update dependencies (6d7d41f)

build

  • add dry-run release script (b0730bb)

9.0.1 (2024-03-08)

Bug Fixes

  • typescript peerDep incapatibility (694b769)

9.0.0 (2023-09-12)

⚠ BREAKING CHANGES

  • drop support for node 12 and 14

build

  • drop support for node 12 and 14 add support for node 16 and 18 (ba32eb2)

8.0.9 (2023-06-22)

8.0.8 (2023-03-23)

8.0.7 (2022-02-08)

8.0.6 (2021-11-30)

Bug Fixes

  • add eslint-import-resolver-typescript (3967ee0)

8.0.5 (2021-11-03)

Bug Fixes

  • add .d.ts extension to import/resolver rule (16ae71b)
  • disable prop-types in tsx files (c80454a)

8.0.3 (2021-11-01)

8.0.4 (2021-11-01)

Bug Fixes

  • disable prop-types in tsx files (c80454a)

8.0.3 (2021-11-01)

Bug Fixes

  • remove elvis operator (0fbafa5)
  • update import rules to account for tsx files (681e50f)

8.0.2 (2021-09-11)

Bug Fixes

8.0.1 (2021-07-05)

8.0.0 (2021-05-04)

⚠ BREAKING CHANGES

Features

  • upgrade eslint-config-prettier to v8 (0ec8ae9)
  • upgrade eslint-plugin-unicorn to v31 (042a31d)

7.1.0 (2021-05-03)

7.1.1 (2021-05-03)

7.0.252 (2021-04-22)

7.1.0 (2021-05-03)

Features

  • upgrade eslint-plugin-promise to v5 (dbcfab4)

7.0.255 (2021-05-03)

Bug Fixes

  • diable unicorn/empty-brace-spaces that conflicts with prettier (1ffa87e)

7.0.254 (2021-05-03)

7.0.253 (2021-05-03)

Bug Fixes

  • jsx-a11y/label-has-associated-control. Fixed #228 (d9a0e3a)

7.0.252 (2021-04-22)

Bug Fixes

  • remove no reduce lint rule (7ce59e9)

7.0.251 (2021-01-12)

Bug Fixes

  • update standard-version message format (e49a8ee), closes #183

7.0.250 (2020-12-18)

7.0.249 (2020-12-18)

7.0.248 (2020-12-18)

7.0.247 (2020-12-18)

7.0.246 (2020-12-18)

7.0.245 (2020-12-18)

7.0.244 (2020-12-18)

7.0.243 (2020-12-18)

7.0.242 (2020-12-18)

7.0.241 (2020-12-18)

7.0.240 (2020-12-18)

7.0.239 (2020-12-18)

7.0.238 (2020-12-18)

Bug Fixes

  • fix command name in eslint-check (0e0708f)
  • fix command name in eslint-check (878f89a)
  • fix deps registry (41702cd)

7.0.237 (2020-11-25)

7.0.236 (2020-11-25)

7.0.235 (2020-11-25)

7.0.234 (2020-11-25)

7.0.233 (2020-11-25)

7.0.232 (2020-11-25)

7.0.231 (2020-11-25)

7.0.230 (2020-11-25)

7.0.229 (2020-11-25)

7.0.228 (2020-11-25)

7.0.227 (2020-11-25)

7.0.226 (2020-11-25)

7.0.225 (2020-11-25)

7.0.224 (2020-11-25)

7.0.223 (2020-11-25)

7.0.222 (2020-11-25)

7.0.221 (2020-11-25)

7.0.220 (2020-11-25)

7.0.219 (2020-11-25)

7.0.218 (2020-11-25)

7.0.217 (2020-11-25)

7.0.216 (2020-11-25)

7.0.215 (2020-11-25)

7.0.214 (2020-11-25)

7.0.213 (2020-11-25)

7.0.212 (2020-11-25)

7.0.211 (2020-11-25)

7.0.210 (2020-11-25)

7.0.209 (2020-11-25)

7.0.208 (2020-11-25)

7.0.207 (2020-11-25)

7.0.206 (2020-11-25)

7.0.205 (2020-11-25)

7.0.204 (2020-11-25)

7.0.203 (2020-11-25)

7.0.202 (2020-11-25)

7.0.201 (2020-11-25)

7.0.200 (2020-11-25)

7.0.199 (2020-11-25)

7.0.198 (2020-11-25)

7.0.197 (2020-11-25)

7.0.196 (2020-11-25)

7.0.195 (2020-11-25)

7.0.194 (2020-11-25)

7.0.193 (2020-11-25)

7.0.192 (2020-11-25)

7.0.191 (2020-11-25)

7.0.190 (2020-11-25)

7.0.189 (2020-11-25)

7.0.188 (2020-11-25)

7.0.187 (2020-11-25)

7.0.186 (2020-11-25)

7.0.185 (2020-11-25)

7.0.184 (2020-11-25)

7.0.183 (2020-11-25)

7.0.182 (2020-11-25)

7.0.181 (2020-11-25)

7.0.180 (2020-11-25)

7.0.179 (2020-11-25)

7.0.178 (2020-11-25)

7.0.177 (2020-11-25)

7.0.176 (2020-11-25)

7.0.175 (2020-11-25)

7.0.174 (2020-11-25)

7.0.173 (2020-11-25)

7.0.172 (2020-11-25)

7.0.171 (2020-11-25)

7.0.170 (2020-11-25)

7.0.169 (2020-11-25)

7.0.168 (2020-11-25)

7.0.167 (2020-11-25)

7.0.166 (2020-11-25)

7.0.165 (2020-11-25)

7.0.164 (2020-11-25)

7.0.163 (2020-11-25)

7.0.162 (2020-11-25)

7.0.161 (2020-11-25)

7.0.160 (2020-11-25)

7.0.159 (2020-11-25)

7.0.158 (2020-11-25)

7.0.157 (2020-11-25)

7.0.156 (2020-11-25)

7.0.155 (2020-11-25)

7.0.154 (2020-11-25)

7.0.153 (2020-11-25)

7.0.152 (2020-11-25)

7.0.151 (2020-11-25)

7.0.150 (2020-11-25)

7.0.149 (2020-11-25)

7.0.148 (2020-11-25)

7.0.147 (2020-11-25)

7.0.146 (2020-11-25)

7.0.145 (2020-11-25)

7.0.144 (2020-11-25)

7.0.143 (2020-11-25)

7.0.142 (2020-11-25)

7.0.141 (2020-11-25)

7.0.140 (2020-11-25)

7.0.139 (2020-11-25)

7.0.138 (2020-11-25)

7.0.137 (2020-11-25)

7.0.136 (2020-11-25)

7.0.135 (2020-11-25)

7.0.134 (2020-11-25)

7.0.133 (2020-11-25)

7.0.132 (2020-11-25)

7.0.131 (2020-11-25)

7.0.130 (2020-11-25)

7.0.129 (2020-11-25)

7.0.128 (2020-11-25)

7.0.127 (2020-11-25)

7.0.126 (2020-11-25)

7.0.125 (2020-11-25)

7.0.124 (2020-11-25)

7.0.123 (2020-11-25)

7.0.122 (2020-11-25)

7.0.121 (2020-11-25)

7.0.120 (2020-11-25)

7.0.119 (2020-11-25)

7.0.118 (2020-11-25)

7.0.117 (2020-11-25)

7.0.116 (2020-11-25)

7.0.115 (2020-11-25)

7.0.114 (2020-11-25)

7.0.113 (2020-11-25)

7.0.112 (2020-11-25)

7.0.111 (2020-11-25)

7.0.110 (2020-11-25)

7.0.109 (2020-11-25)

7.0.108 (2020-11-25)

7.0.107 (2020-11-25)

7.0.106 (2020-11-25)

7.0.105 (2020-11-25)

7.0.104 (2020-11-25)

7.0.103 (2020-11-25)

7.0.102 (2020-11-25)

7.0.101 (2020-11-25)

7.0.100 (2020-11-25)

7.0.99 (2020-11-25)

7.0.98 (2020-11-25)

7.0.97 (2020-11-25)

7.0.96 (2020-11-25)

7.0.95 (2020-11-25)

7.0.94 (2020-11-25)

7.0.93 (2020-11-25)

7.0.92 (2020-11-25)

7.0.91 (2020-11-25)

7.0.90 (2020-11-25)

7.0.89 (2020-11-25)

7.0.88 (2020-11-25)

7.0.87 (2020-11-25)

7.0.86 (2020-11-25)

7.0.85 (2020-11-25)

7.0.84 (2020-11-25)

7.0.83 (2020-11-25)

7.0.82 (2020-11-25)

7.0.81 (2020-11-25)

7.0.80 (2020-11-25)

7.0.79 (2020-11-25)

7.0.78 (2020-11-25)

7.0.77 (2020-11-25)

7.0.76 (2020-11-25)

7.0.75 (2020-11-25)

7.0.74 (2020-11-25)

7.0.73 (2020-11-25)

7.0.72 (2020-11-25)

7.0.71 (2020-11-25)

7.0.70 (2020-11-25)

7.0.69 (2020-11-25)

7.0.68 (2020-11-25)

7.0.67 (2020-11-25)

7.0.66 (2020-11-25)

7.0.65 (2020-11-25)

7.0.64 (2020-11-25)

7.0.63 (2020-11-25)

7.0.62 (2020-11-25)

7.0.61 (2020-11-25)

7.0.60 (2020-11-25)

7.0.59 (2020-11-25)

7.0.58 (2020-11-25)

7.0.57 (2020-11-25)

7.0.56 (2020-11-25)

7.0.55 (2020-11-25)

7.0.54 (2020-11-25)

7.0.53 (2020-11-25)

7.0.52 (2020-11-25)

7.0.51 (2020-11-25)

7.0.50 (2020-11-25)

7.0.49 (2020-11-25)

7.0.48 (2020-11-25)

7.0.47 (2020-11-25)

7.0.46 (2020-11-25)

7.0.45 (2020-11-25)

7.0.44 (2020-11-25)

7.0.43 (2020-11-25)

7.0.42 (2020-11-25)

7.0.41 (2020-11-25)

7.0.40 (2020-11-25)

7.0.39 (2020-11-25)

7.0.38 (2020-11-25)

7.0.37 (2020-11-25)

7.0.36 (2020-11-25)

7.0.35 (2020-11-25)

7.0.34 (2020-11-25)

7.0.33 (2020-11-25)

7.0.32 (2020-11-25)

7.0.31 (2020-11-25)

7.0.30 (2020-11-25)

7.0.29 (2020-11-25)

7.0.28 (2020-11-25)

7.0.27 (2020-11-25)

7.0.26 (2020-11-25)

7.0.25 (2020-11-25)

7.0.24 (2020-11-25)

7.0.23 (2020-11-25)

7.0.22 (2020-11-25)

7.0.21 (2020-11-25)

7.0.20 (2020-11-25)

7.0.19 (2020-11-25)

7.0.18 (2020-11-25)

7.0.17 (2020-11-25)

7.0.16 (2020-11-25)

7.0.15 (2020-11-25)

7.0.14 (2020-11-25)

7.0.13 (2020-11-25)

7.0.12 (2020-11-25)

7.0.11 (2020-11-25)

7.0.10 (2020-11-25)

7.0.9 (2020-11-25)

7.0.8 (2020-11-25)

7.0.7 (2020-11-25)

7.0.6 (2020-11-25)

7.0.5 (2020-11-25)

7.0.4 (2020-11-25)

7.0.3 (2020-11-25)

7.0.2 (2020-11-25)

7.0.1 (2020-11-18)

Bug Fixes

  • disable unicorn/prefer-math-trunc (3b1bb75)

7.0.0 (2020-11-17)

⚠ BREAKING CHANGES

  • eslint-plugin-unicorn has been updated.

See https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v23.0.0

6.0.2 (2020-10-01)

Bug Fixes

  • replace core no-use-before-define with @typescript-eslint/no-use-before-define warnings (f09998c)

6.0.1 (2020-09-29)

6.0.0 (2020-08-12)

⚠ BREAKING CHANGES

Features

Bug Fixes

  • add recommended tslint settings (a1269da)

build

5.3.2 (2020-01-03)

5.3.1 (2020-01-03)

5.3.0 (2020-01-03)

Features

  • turned off prefer-query-selector (0448000)

Bug Fixes

  • disable unicorn/prefer-node-append (4488748)

5.2.3 (2019-10-23)

5.2.2 (2019-10-23)

5.2.1 (2019-10-10)

5.2.0 (2019-10-10)

Features

  • added workflow config for root imports (8fedbbb)

5.1.2 (2019-10-10)

5.1.1 (2019-10-10)

5.1.0 (2019-10-04)

5.0.0 (2019-09-25)

Code Refactoring

Features

  • upgrade eslint v6 and airbnb v14/v18 ([3fc30a9]

BREAKING CHANGES

4.0.10 (2019-08-20)

4.0.9 (2019-07-19)

4.0.8 (2019-06-26)

Bug Fixes

  • remove unicorn/no-for-loop for browsers/react (530d1db)

4.0.7 (2019-06-19)

Bug Fixes

  • fixed file not being uploaded to npm (3c20df9)

4.0.6 (2019-06-19)

4.0.5 (2019-06-19)

Bug Fixes

  • hardcode typescript recommend rules (479fb62)

4.0.4 (2019-06-18)

4.0.3 (2019-06-18)

Features

BREAKING CHANGES

4.0.2 (2019-02-25)

Features

  • added eslint-plugin-react-hooks fixes #25 (a16bdcf)

4.0.1 (2019-02-07)

Bug Fixes

  • decorators: enable legacy decorators (072cb68)
  • object-destruct: rules fix for unicorn and eslint fixes #22 (51a50d2)

4.0.0 (2019-02-04)

Bug Fixes

  • object-destruct: rules fix for unicorn and eslint fixes #22 (51a50d2)

4.0.0-alpha.5 (2019-01-29)

4.0.0-alpha.4 (2019-01-29)

4.0.0-alpha.3 (2019-01-29)

Features

  • unicorn-test: add test for toggling import-index to off (ddcbadc)

4.0.0-alpha.2 (2018-11-26)

Bug Fixes

  • make eslint-plugin-react compat with prettier (abf0c40)

4.0.0-alpha.0 (2018-09-05)

Chores

  • upgrade eslint and eslint-config-airbnb. closes #15 (4d5422b)

BREAKING CHANGES

  • upgrade to eslint v5 and eslint-config-airbnb v17

3.0.0 (2018-07-06)

3.0.0-beta.10 (2017-12-08)

Bug Fixes

  • browser: estend airbnb not airbnb-base (d8bb86f)

3.0.0-beta.9 (2017-12-08)

Bug Fixes

  • dependencies: remove peer deps already listed in eslint-config-airbnb and eslint-config-airbnb-base (3bceb57)
  • prettier: Turn off eslint rules that conflict with prettier. Fixes #8 (ba9c603)
  • rules: turn off function-paren-newline (3502538)

3.0.0-beta.8 (2017-10-19)

Bug Fixes

  • react/require-default-props: don't use it (a4271de)

Chores

  • dependencies: upgrade eslint-config-airbnb and eslint-plugin-jsx-a11y (442c9b6)

BREAKING CHANGES

  • dependencies: eslint-plugin-jsx-a11y upgraded to 6.x

3.0.0-beta.7 (2017-10-18)

Bug Fixes

  • dependency: missing eslint-plugin-import (d01db1e)

3.0.0-beta.6 (2017-10-18)

Bug Fixes

  • eslint: eslint-plugin-import already handled by airbnb extends (bff77fe)

Features

  • rules: disable class-methods-use-this (08b6d5c)

BREAKING CHANGES

  • eslint: remove eslint-plugin-node

3.0.0-beta.5 (2017-10-04)

3.0.0-beta.4 (2017-10-04)

Bug Fixes

  • eslint: rollback eslint-plugin-jsx-a11y to v5 (ecc9973)

3.0.0-beta.3 (2017-10-03)

Chores

  • dependencies: upgrade eslint-config-airbnb and eslint-config-airbnb-base (843c7e3)

Features

BREAKING CHANGES