]> Untitled Git - lemmy-ui.git/blob - .eslintrc.json
Merge branch 'main' into patch-1
[lemmy-ui.git] / .eslintrc.json
1 {
2   "root": true,
3   "env": {
4     "browser": true
5   },
6   "plugins": ["@typescript-eslint", "jsx-a11y"],
7   "extends": [
8     "eslint:recommended",
9     "plugin:@typescript-eslint/recommended",
10     "plugin:inferno/recommended",
11     "plugin:jsx-a11y/recommended"
12   ],
13   "parser": "@typescript-eslint/parser",
14   "parserOptions": {
15     "project": "./tsconfig.json",
16     "warnOnUnsupportedTypeScriptVersion": false
17   },
18   "rules": {
19     "@typescript-eslint/ban-ts-comment": 0,
20     "@typescript-eslint/no-explicit-any": 0,
21     "@typescript-eslint/explicit-module-boundary-types": 0,
22     "@typescript-eslint/no-empty-function": 0,
23     "arrow-body-style": 0,
24     "jsx-a11y/alt-text": 1,
25     "jsx-a11y/anchor-is-valid": 1,
26     "jsx-a11y/aria-activedescendant-has-tabindex": 1,
27     "jsx-a11y/aria-role": 1,
28     "jsx-a11y/click-events-have-key-events": 1,
29     "jsx-a11y/iframe-has-title": 1,
30     "jsx-a11y/interactive-supports-focus": 1,
31     "jsx-a11y/no-redundant-roles": 1,
32     "jsx-a11y/no-static-element-interactions": 1,
33     "jsx-a11y/role-has-required-aria-props": 1,
34     "curly": 0,
35     "eol-last": 0,
36     "eqeqeq": 0,
37     "func-style": 0,
38     "import/no-duplicates": 0,
39     "max-statements": 0,
40     "max-params": 0,
41     "new-cap": 0,
42     "no-console": 0,
43     "no-duplicate-imports": 0,
44     "no-extra-parens": 0,
45     "no-return-assign": 0,
46     "no-throw-literal": 0,
47     "no-trailing-spaces": 0,
48     "no-unused-expressions": 0,
49     "no-useless-constructor": 0,
50     "no-useless-escape": 0,
51     "no-var": 0,
52     "prefer-const": 1,
53     "prefer-rest-params": 0,
54     "quote-props": 0,
55     "unicorn/filename-case": 0
56   }
57 }