aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc
blob: d9a297d424e1c5f81e14ce67e08930dec1352d2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
  "extends": [
    "eslint:recommended",
    "plugin:import/recommended",
    "plugin:jsdoc/recommended",
    "plugin:promise/recommended",
    "plugin:react/recommended",
    "plugin:react/jsx-runtime",
    "plugin:react-hooks/recommended",
    "plugin:jest/recommended",
    "plugin:jest-dom/recommended"
  ],
  "env": {
    "browser": true,
    "node": true,
    "es6": true,
    "jest/globals": true
  },
  "plugins": [
    "react",
    "react-hooks",
    "only-ascii",
    "testing-library",
    "jest",
    "jest-dom",
    "jsdoc"
  ],
  "settings": {
    "react": {
      "pragma": "React",
      "version": "18"
    },
    "jsdoc": {
      "mode": "typescript"
    },
    "import/parsers": {
      "@babel/eslint-parser": [".js"]
    }
  },
  "overrides": [
    {
      "files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
      "extends": ["plugin:testing-library/react"]
    }
  ],
  "parserOptions": {
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": true
    },
    "ecmaVersion": 12
  },
  "rules": {
    "quotes": ["error", "single"],
    "no-cond-assign": "warn",
    "no-unused-vars": "warn",
    "no-useless-escape": "warn",
    "only-ascii/only-ascii": ["warn", { "allowedChars": "✓←→♡ ·—©" }],
    "react/prop-types": "off",
    "testing-library/no-node-access": "off",
    "jsdoc/require-jsdoc": ["warn", { "publicOnly" : true }],
    "jsdoc/require-returns": "off",
    "jsdoc/require-returns-type": "off",
    "jsdoc/require-property-description": "off",
    "jsdoc/require-param-description": "off",
    "promise/always-return": "off",
    "semi": ["error", "never", { "beforeStatementContinuationChars": "always"}],
    "semi-style": ["error", "last"]
  },
  "root": true
}