An ESLint Shareable Config for JavaScript Modul Style
yarn add -D eslint-config-modul
.eslintrc:
{
"extends": "modul"
}
Based on Airbnb JavaScript Style Guide with some differences:
-
eol-last
- disabled -
func-names
- disabled -
spaces-comment
- disabled -
import/prefer-default-export
- disabled -
class-methods-use-this
- disabled -
indent
- set to 4 spaces -
react/jsx-indent
- set to 4 spaces -
react/jsx-indent-props
- set to 4 spaces -
react/require-default-props
- disabled -
react/jsx-one-expression-per-line
- disabled -
jsx-a11y/anchor-has-content
- disabled -
jsx-a11y/click-events-have-key-events
- disabled -
jsx-a11y/no-static-element-interactions
- disabled -
jsx-a11y/anchor-is-valid
- disabled