forked from tunahandanis/nft-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
94 lines (92 loc) · 2.38 KB
/
.eslintrc.js
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
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["react", "@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react-hooks/recommended",
],
ignorePatterns: ["/*.*"],
env: {
browser: true,
jasmine: true,
jest: true,
node: true,
},
parserOptions: {
project: "./tsconfig.json",
extraFileExtensions: [".scss"],
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
moduleDirectory: ["node_modules", "src/"],
},
},
react: {
version: "^17.0.2",
},
},
globals: {
moment: true,
document: true,
window: true,
localStorage: true,
Audio: true,
Event: true,
Blob: true,
},
rules: {
"func-names": "off",
"no-param-reassign": [
"error",
{
props: true,
ignorePropertyModificationsFor: ["state"],
},
],
"max-len": ["off", { code: 80, ignoreComments: true }],
"no-console": "off",
"no-nested-ternary": "error",
"no-else-return": "error",
"react/react-in-jsx-scope": "off",
"no-undef": "off",
"comma-dangle": "off",
radix: "off",
eqeqeq: ["error", "smart"],
"react/prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/destructuring-assignment": "off",
"react/display-name": "off",
"react/prefer-stateless-function": "error",
"import/prefer-default-export": "off",
"import/order": ["error", { groups: ["external", "internal"] }],
"import/no-cycle": ["warn", { ignoreExternal: true }],
"no-shadow": "off",
"arrow-body-style": "off",
"consistent-return": "off",
"no-nested-ternary": "off",
"@typescript-eslint/no-shadow": ["off"],
"@typescript-eslint/semi": "off",
"@typescript-eslint/comma-dangle": "off",
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": ["error", { ignoreRestArgs: true }],
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/ban-types": [
"error",
{
types: {
"{}": {
message: "Prefer explicit types for clarity",
},
},
},
],
},
}