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:jsdoc/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jest/recommended",
"plugin:jest-dom/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest/globals": true
},
"plugins": [
"react",
"react-hooks",
"only-ascii",
"testing-library",
"jest",
"jest-dom",
"jsdoc",
"@typescript-eslint"
],
"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"]
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"jsconfig.json"
],
"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",
"semi": ["error", "always"],
"semi-style": ["error", "last"],
"@typescript-eslint/no-floating-promises": "error"
}
}
|