-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
51 lines (51 loc) · 1.56 KB
/
.eslintrc.yml
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
env:
browser: true
es2021: true
extends:
- plugin:react/recommended
- standard-with-typescript
overrides: []
parserOptions:
ecmaVersion: latest
sourceType: module
project: "./tsconfig.json"
plugins:
- react
rules: {
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/explicit-member-accessibility": "error",
"react/function-component-definition": ["error", {
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}],
"react/no-unused-prop-types": ["error"],
"react/prefer-stateless-function": ["error"],
"react/self-closing-comp": ["error"],
"react/jsx-closing-bracket-location": ["error"],
"react/jsx-curly-brace-presence": ["error"],
"react/jsx-curly-newline": ["error"],
"react/jsx-curly-spacing": ["error"],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-first-prop-new-line": ["error"],
"react/jsx-handler-names": ["error"],
"react/jsx-key": ["error"],
"react/jsx-max-props-per-line": ["error"],
"react/jsx-newline": ["error"],
"react/jsx-one-expression-per-line": ["error"],
"react/jsx-pascal-case": ["error"],
"react/jsx-sort-props": ["error"],
"react/jsx-tag-spacing": ["error"],
"react/jsx-wrap-multilines": ["error", {
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "parens-new-line",
"prop": "parens-new-line"
}],
"react/no-adjacent-inline-elements": ["error"]
}
settings:
react:
version: detect