forked from alloy-org/ai-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
97 lines (97 loc) · 2.5 KB
/
Copy path.eslintrc.json
File metadata and controls
97 lines (97 loc) · 2.5 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"env": {
"browser": true,
"es2021": true,
"jquery": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react",
"react-hooks"
],
"globals": {
"GitClear": "readonly",
"Cookies": "readonly",
"Sentry": "readonly",
"$": "readonly"
},
"rules": {
"array-bracket-spacing": ["error", "always"],
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"comma-dangle": ["error", "never"],
"comment-pattern": ["warn", "^// -{10,}$", { "matchCommentsOnly": true }],
"func-style": ["error", "declaration"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"jsx-quotes": ["error", "prefer-double"],
"max-len": ["error", {
"code": 120,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"no-multiple-empty-lines": ["error", {
"max": 1,
"maxBOF": 0,
"maxEOF": 0
}],
"no-var": ["error"],
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "always"],
"quotes": ["error", "double", {
"allowTemplateLiterals": true,
"avoidEscape": true
}],
"react/jsx-boolean-value": ["error", "never"],
"react/jsx-curly-spacing": ["error", {
"when": "always",
"children": true,
"spacing": {
"objectLiterals": "never"
}
}],
"react/jsx-first-prop-new-line": ["error", "multiline"],
"react/jsx-indent": ["error", 2],
"react/jsx-indent-props": ["error", 2],
"react/jsx-max-props-per-line": ["error", {
"maximum": 1,
"when": "multiline"
}],
"react/jsx-tag-spacing": ["error", {
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
}],
"react/prop-types": "error",
"react/self-closing-comp": ["error", {
"component": true,
"html": true
}],
"semi": ["error", "never"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"template-curly-spacing": ["error", "always"]
},
"settings": {
"react": {
"version": "detect"
}
}
}