github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/frontend/.xo-config.json (about)

     1  {
     2    "space": true,
     3    "extends": "xo-react",
     4    "ignores": [
     5      "/node_modules/",
     6      "/lib/",
     7      "/static/",
     8      "src/graphql/generated.ts",
     9      "jest.config.js",
    10      "tsconfig.*json",
    11      "webpack.config.js"
    12    ],
    13    "overrides": [
    14      {
    15        "files": ["**/*.tsx"],
    16        "rules": {
    17          "react/prop-types": "off"
    18        }
    19      }
    20    ],
    21    "rules": {
    22      "capitalized-comments": [
    23        "off",
    24        "never",
    25        {
    26          "ignorePattern": "pragma|ignored",
    27          "ignoreInlineComments": true
    28        }
    29      ],
    30      "import/extensions": [
    31        "off"
    32      ],
    33      "n/file-extension-in-import": [
    34        "off"
    35      ],
    36      "import/no-cycle": [
    37        "error",
    38        {
    39          "ignoreExternal": true,
    40          "maxDepth": 1
    41        }
    42      ],
    43      "import/no-unassigned-import": [
    44        "error",
    45        {
    46          "allow": ["@testing-library/jest-dom"]
    47        }
    48      ],
    49      "jsx-quotes": [
    50        "error",
    51        "prefer-double"
    52      ],
    53      "no-warning-comments": [0, {
    54        "terms": ["todo", "fixme", "xxx"], "location": "start"
    55      }],
    56      "react/function-component-definition": [
    57        "error",
    58        {
    59          "namedComponents": "arrow-function",
    60          "unnamedComponents": "arrow-function"
    61        }
    62      ],
    63      "unicorn/filename-case": [
    64        "off"
    65      ],
    66      "@typescript-eslint/naming-convention": [
    67        "error",
    68        {
    69          "selector": "variable",
    70          "format": ["camelCase", "PascalCase", "UPPER_CASE"],
    71          "leadingUnderscore": "allow",
    72          "trailingUnderscore": "allow"
    73        }
    74      ]
    75    },
    76    "settings": {
    77      "import/resolver": "webpack"
    78    },
    79    "webpack": true
    80  }