-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
72 lines (71 loc) · 1.49 KB
/
.eslintrc.json
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
72
{
"root": true,
"settings": {
"formComponents": [
// Components used as alternatives to <form> for forms, eg. <Form endpoint={ url } />
"Form"
],
"linkComponents": [
// Components used as alternatives to <a> for linking, eg. <Link to={ url } />
"HyperLink",
"NavLink",
"A"
]
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"@typescript-eslint/eslint-plugin",
"eslint-plugin-tsdoc",
"solid",
"jsx-a11y",
"react",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:solid/recommended",
"plugin:jsx-a11y/recommended"
],
"rules": {
"prettier/prettier": "warn",
"tsdoc/syntax": "warn",
"react/button-has-type": "warn",
"react/no-children-prop": "warn",
"react/no-multi-comp": "warn",
"react/no-unescaped-entities": "error",
"react/self-closing-comp": [
"warn",
{
"component": true,
"html": true
}
],
"react/no-invalid-html-attribute": "error",
"react/void-dom-elements-no-children": "error",
"react/jsx-no-script-url": "error",
"react/jsx-no-target-blank": [
"error",
{
"allowReferrer": true,
"enforceDynamicLinks": "always",
"warnOnSpreadAttributes": true,
"links": true,
"forms": true
}
],
"react/jsx-no-comment-textnodes": "warn",
"react/jsx-no-useless-fragment": [
"error",
{
"allowExpressions": true
}
],
"react/destructuring-assignment": ["error", "never"]
}
}