This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
forked from JohnDeved/undefined-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
102 lines (100 loc) · 4.52 KB
/
.eslintrc
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
98
99
100
101
102
{
"root": true,
"env": {
"browser": true,
"es2021": true,
"node": true,
"worker": true,
"mocha": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"standard-with-typescript"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"react"
],
"rules": {
"prefer-template": "error",
"space-infix-ops": "error",
"jsx-quotes": ["error", "prefer-double"],
"standard/no-callback-literal": "off",
"no-void": "off",
"no-new": "off",
"comma-dangle": "off",
"array-callback-return": "off",
"@typescript-eslint/space-infix-ops": "error",
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/consistent-type-imports": ["error", {"prefer": "type-imports"}],
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
"@typescript-eslint/no-unnecessary-condition": "error",
"@typescript-eslint/no-unnecessary-type-arguments": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-unnecessary-type-constraint": "error",
"@typescript-eslint/non-nullable-type-assertion-style": "error",
"@typescript-eslint/prefer-as-const": "error",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-for-in-array": "off",
"@typescript-eslint/method-signature-style": "off",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"react/jsx-indent": ["error", 2, { "checkAttributes": true, "indentLogicalExpressions": true }],
"react/function-component-definition": [2, { "namedComponents": "arrow-function" }],
"react/self-closing-comp": ["error", { "component": true, "html": true }],
"react/jsx-closing-bracket-location": [1, "line-aligned"],
"react/jsx-closing-tag-location": "error",
"react/jsx-curly-brace-presence": ["error", { "props": "never", "children": "never" }],
"react/jsx-curly-newline": ["error", { "multiline": "consistent", "singleline": "forbid" }],
"react/jsx-curly-spacing": ["error", {"when": "never", "children": true, "allowMultiline": true}],
"react/jsx-equals-spacing": ["error", "never"],
"react/jsx-fragments": ["error", "syntax"],
"react/jsx-indent-props": ["error", 2],
"react/jsx-max-props-per-line": ["error", { "when": "multiline" }],
"react/jsx-newline": ["error", { "prevent": true }],
"react/jsx-props-no-multi-spaces": "error",
"react/jsx-space-before-closing": ["error", "never"],
"react/jsx-tag-spacing": ["error", { "closingSlash": "never", "beforeSelfClosing": "never", "afterOpening": "never", "beforeClosing": "allow" }],
"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/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-no-useless-fragment": "error",
"react/display-name": "off",
"react/prop-types": "off"
}
}