alvis/presetter

View on GitHub
packages/preset-react/templates/eslintrc.yaml

Summary

Maintainability
Test Coverage
extends:
  - plugin:react/recommended
  - plugin:react/jsx-runtime
rules:
  react/boolean-prop-naming: warn
  react/button-has-type: warn
  react/destructuring-assignment: warn
  react/prop-types: off
  react/sort-comp: warn
  react/jsx-sort-props:
    - warn
    - callbacksLast: true
      shorthandFirst: true
overrides:
  - files:
      - '**/__tests__/**/*.[jt]sx'
      - '**/?(*.)+(spec|test).[jt]sx'
    extends:
      - plugin:testing-library/react
  - files:
      - src/**/*.tsx
    rules:
      max-lines-per-function:
        - warn
        - max: 120