-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontend.js
More file actions
67 lines (67 loc) · 2 KB
/
frontend.js
File metadata and controls
67 lines (67 loc) · 2 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
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"serviceworker": true,
"jest": true,
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"Clipboard": true,
"process": true,
"Stripe": true,
"RequestInit": true,
"JSX": true,
},
"settings": {
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"polyfills": ["fetch", "url"],
"react": {
"version": "detect",
},
},
"plugins": ["@typescript-eslint", "react", "react-hooks", "jest"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jest/recommended",
],
"rules": {
"react/destructuring-assignment": [2, "always"],
"react/no-array-index-key": 2,
"react/no-multi-comp": 2,
"react/no-unstable-nested-components": 2,
"@typescript-eslint/naming-convention": [2, {
"selector": "variable",
"format": ["camelCase", "UPPER_CASE", "PascalCase"]
}],
"@typescript-eslint/no-unused-vars": 2,
"@typescript-eslint/ban-ts-comment": [2, {
"ts-expect-error": "allow-with-description",
}],
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/ban-ts-ignore": 0,
"prefer-template": 2,
"no-var": 2,
"linebreak-style": [2, "unix"],
"quotes": [2, "double", {
"avoidEscape": true
}],
"semi": [2, "always"],
"max-lines": 2,
"indent": [2, 4]
},
};