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
|
{
"extends": [
"eslint:recommended",
"plugin:jsdoc/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jest/recommended"
],
"parser": "@babel/eslint-parser",
"env": {
"browser": true,
"node": true,
"es6": true,
"jest/globals": true
},
"plugins": [
"@babel",
"react",
"react-hooks",
"only-ascii",
"testing-library",
"jest",
"jest-dom",
"jsdoc",
"no-floating-promise"
],
"settings": {
"react": {
"pragma": "React",
"version": "18"
},
"jsdoc": {
"mode": "typescript"
}
},
"overrides": [
{
"files": ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
"extends": ["plugin:testing-library/react"]
}
],
"rules": {
"quotes": ["error", "single"],
"only-ascii/only-ascii": ["warn", { "allowedChars": "✓←→♡ ·—©" }],
"react/prop-types": "off",
"testing-library/no-node-access": "off",
"jsdoc/require-jsdoc": ["error", { "publicOnly" : true }],
"jsdoc/require-returns": "off",
"jsdoc/require-returns-type": "off",
"jsdoc/require-property-description": "off",
"jsdoc/require-param-description": "off",
"no-floating-promise/no-floating-promise": "error",
"semi": ["error", "always"],
"semi-style": ["error", "last"]
}
}
|