@bumped-inc/eslint-config
Shared eslint-config for Bumped
Usage
Add the appropriate devDependencies:
yarn add eslint prettier @bumped-inc/eslint-config --dev
Accessibility with React projects
Because Accessibility is often hard to add after-the-fact to projects, it is
currently opt-in, allowing the developer to have more control over the specific
rules. This may change in the future if we settle on appropriate standards.
New projects should attempt to follow the full accessibility rules if possible.
For full list of rules, see
eslint-plugin-jsx-a11y or
eslint-plugin-react-native-a11y.
Example React config
In package.json
:
"eslintConfig": {
"extends": [
"@bumped-inc/eslint-config/react",
"plugin:jsx-a11y/recommended"
],
"plugins": [
"jsx-a11y"
]
}
You could alternatively specify "plugin:jsx-a11y/strict"
or custom rules as
you see fit.
The eslint-plugin-jsx-a11y
is included as a dependency of this project.
Example React-Native config
In package.json
:
"eslintConfig": {
"extends": [
"@bumped-inc/eslint-config/react",
"plugin:react-native-a11y/recommended"
],
"plugins": [
"react-native-a11y"
]
}
The eslint-plugin-react-native-a11y
is not included as a dependency of this
project and would need to be installed separately.