Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds jsx-no-ampersands #1

Merged
merged 3 commits into from
Jul 6, 2021
Merged

Commits on May 26, 2021

  1. Adds jsx-no-ampersands

    Adds minimal setup for custom eslint rule.
    
    - Introduces a lint rule `jsx-no-ampersands` copied from on `jsx-embed-condition`: https://github.com/yannickcr/eslint-plugin-react/blob/ee232bbaef4fb04740413d5048877559abf06222/lib/rules/jsx-embed-condition.js
    - TODO: add tests for `jsx-no-ampersands`
    - To use this rule, add the following to `.eslintrc`:
    ```json
     {
      "plugins": [
       "grailed"
      ],
      "rules": {
       "grailed/jsx-no-ampersands": "warn"
      }
     }
    ```
    
    Co-authored-by: Bean <10777333+GeneTheBean@users.noreply.github.com>
    niculistana and GeneTheBean committed May 26, 2021
    Configuration menu
    Copy the full SHA
    d2eac55 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2021

  1. add lint rule with test

    Eugene Chen authored and Eugene Chen committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    16c3df8 View commit details
    Browse the repository at this point in the history
  2. add doc

    Eugene Chen authored and Eugene Chen committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    a07ad38 View commit details
    Browse the repository at this point in the history