-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
112 lines (111 loc) · 3.57 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"env": {
"browser": true,
"es2021": true,
"jest/globals": true,
"jest": true
},
"extends": [
"react-app",
"react-app/jest",
"plugin:react/recommended",
"airbnb",
"airbnb-typescript",
"plugin:import/recommended",
"plugin:testing-library/react"
],
"settings": {
"import/resolver": "typescript"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": ["react", "@typescript-eslint", "prettier", "testing-library"],
"rules": {
"@typescript-eslint/semi": ["off"],
"@typescript-eslint/indent": ["off"],
"@typescript-eslint/object-curly-spacing": ["off"],
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/quotes": ["off"],
"@typescript-eslint/comma-spacing": ["off"],
"@typescript-eslint/comma-dangle": ["off"],
"@typescript-eslint/no-unused-expressions": ["off"],
"@typescript-eslint/default-param-last": ["off"],
"react/jsx-curly-newline": ["off"],
"react/jsx-props-no-multi-spaces": ["off"],
"react/jsx-props-no-spreading": ["off"],
"react/button-has-type": ["off"],
"react/jsx-one-expression-per-line": ["off"],
"react/jsx-wrap-multilines": ["off"],
"react/react-in-jsx-scope": ["off"],
"react/jsx-no-useless-fragment": ["off"],
"react/function-component-definition": ["off"],
"react/jsx-boolean-value": ["off"],
"react/jsx-indent": ["off"],
"react/destructuring-assignment": ["off"],
"react/self-closing-comp": [
"off",
{
"component": false,
"html": false
}
],
"react/jsx-closing-tag-location": ["off"],
"react/jsx-tag-spacing": ["off"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".tsx"] }],
"jsx-a11y/control-has-associated-label": ["warn"],
"jsx-a11y/heading-has-content": ["warn"],
"jsx-a11y/no-static-element-interactions": ["off"],
"jsx-a11y/no-noninteractive-element-interactions": ["off"],
"jsx-a11y/click-events-have-key-events": ["off"],
"jsx-quotes": ["off"],
"jsx-a11y/no-autofocus": ["off"],
"function-paren-newline": ["off"],
"no-multiple-empty-lines": "off",
"operator-linebreak": ["off"],
"eol-last": "off",
"padded-blocks": "off",
"arrow-spacing": "off",
"no-console:": "off",
"no-nested-ternary": "off",
"linebreak-style": ["off"],
"arrow-body-style": "off",
"no-trailing-spaces": "off",
"no-multi-spaces": "off",
"key-spacing": "off",
"import/prefer-default-export": "off",
"object-curly-newline": 0,
"implicit-arrow-linebreak": ["off"],
"nonblock-statement-body-position": ["off"],
"@typescript-eslint/no-shadow": ["off"],
"spaced-comment": ["off"],
"curly": ["off"],
"consistent-return": ["off"],
"prefer-destructuring": ["warn"],
"no-console": "off",
"no-param-reassign": "off",
"import/no-dynamic-require": "off",
"global-require": "off",
"no-return-assign": "off",
"prefer-arrow-callback": "off",
"prefer-promise-reject-errors": "off",
"prefer-template": "off",
"no-extra-boolean-cast": "off",
"no-debugger": "off",
"no-restricted-syntax": "off",
"no-plusplus": "off",
"guard-for-in": "off",
"no-alert": "off",
"no-useless-escape": "off",
"@typescript-eslint/no-throw-literal": ["off"],
"testing-library/no-render-in-setup": ["off"],
"testing-library/no-debugging-utils": ["off"],
"testing-library/no-node-access": ["off"]
}
}