github.com/grafviktor/keep-my-secret@v0.9.10-0.20230908165355-19f35cce90e5/website/.eslintrc (about)

     1  {
     2    "extends": "airbnb",
     3    "globals": {
     4      "document": true,
     5      "foo": true,
     6      "window": true
     7    },
     8    "rules": {
     9      "no-console": [
    10        "error",
    11        {
    12          "allow": [
    13            "warn"
    14          ]
    15        }
    16      ],
    17      "key-spacing": [
    18        "error",
    19        {
    20          "align": {
    21            "beforeColon": true,
    22            "afterColon": true,
    23            "on": "colon"
    24          }
    25        }
    26      ],
    27      "object-curly-newline": [
    28        "error",
    29        {
    30          "consistent": true
    31        }
    32      ],
    33      "object-curly-spacing": [
    34        "error",
    35        "never"
    36      ],
    37      "semi": [
    38        "error",
    39        "never"
    40      ],
    41      "react/react-in-jsx-scope": "off",
    42      "react/jsx-uses-react": "off",
    43      "react/function-component-definition": [
    44        "error",
    45        {
    46          "namedComponents": [
    47            "function-declaration",
    48            "arrow-function"
    49          ],
    50          "unnamedComponents": "arrow-function"
    51        }
    52      ],
    53      "jsx-a11y/label-has-associated-control": [
    54        "error",
    55        {
    56          "required": {
    57            "some": [
    58              "nesting",
    59              "id"
    60            ]
    61          }
    62        }
    63      ],
    64      "jsx-a11y/label-has-for": [
    65        "error",
    66        {
    67          "required": {
    68            "some": [
    69              "nesting",
    70              "id"
    71            ]
    72          }
    73        }
    74      ],
    75      "react/prop-types": "off"
    76    }
    77  }