-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
84 lines (84 loc) · 2.28 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
73
74
75
76
77
78
79
80
81
82
83
84
{
"$schema": "https://json.schemastore.org/eslintrc",
"root": true,
"plugins": ["prettier", "simple-import-sort"],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended"
],
"overrides": [
{
"files": [ "**/*.md?(x)" ],
"extends": [
"plugin:mdx/recommended"
],
"settings": {
"mdx/code-blocks": true,
"mdx/language-mapper": {}
}
},
{
"files": [ "**/*.{ts,js}?(x)" ],
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-empty-interface": [
"error",
{ "allowSingleExtends": true }
],
"@typescript-eslint/no-unused-vars": "error"
}
}
],
"rules": {
"react/prop-types": 0,
"react/display-name": 0,
"react/prefer-read-only-props": [ "error" ],
"react/react-in-jsx-scope": 0,
"react/self-closing-comp": [ "error" ],
"react/jsx-sort-props": [ "error" ],
"react/no-unescaped-entities": 0,
"prettier/prettier": "error",
"arrow-parens": ["error", "as-needed"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"prefer-const": ["error", { "destructuring": "all" }],
"no-else-return": ["error", { "allowElseIf": false }],
"no-extra-bind": "error",
"no-multi-spaces": ["error"],
"array-bracket-newline": ["error", "consistent"],
"no-unused-expressions": [ "error" ],
"no-constant-binary-expression": [ "error" ],
"no-sequences": ["error"],
"array-element-newline": ["error", "consistent"],
"block-spacing": ["error", "always"],
"comma-spacing": ["error"],
"computed-property-spacing": ["error"],
"key-spacing": ["error"],
"simple-import-sort/imports": [ "error" ],
"simple-import-sort/exports": [ "error" ],
"keyword-spacing": "error",
"object-curly-newline": ["error"],
"arrow-body-style": ["error", "as-needed"]
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"project": ["tsconfig.json" ],
"extraFileExtensions": [ "md", "mdx" ]
},
"ignorePatterns": [ "tsconfig.json" ],
"settings": {
"react": {
"version": "detect"
}
}
}