-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc-ts.config.json
94 lines (94 loc) · 2.36 KB
/
.eslintrc-ts.config.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
{
"extends": [
"plugin:@next/next/recommended",
"plugin:jsdoc/recommended-typescript",
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:react-prefer-function-component/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"import",
"react-prefer-function-component",
"react-hooks",
"jsdoc"
],
"rules": {
"import/extensions": "off",
"arrow-body-style": [
"warn",
"always"
],
"no-param-reassign": "off",
"class-methods-use-this": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "warn",
"curly": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"import/order": "warn",
"@typescript-eslint/lines-between-class-members": "warn",
"array-element-newline": "off",
"import/prefer-default-export": "off",
"import/newline-after-import": "warn",
"jsdoc/require-jsdoc": "off",
"jsdoc/require-param": "off",
"jsdoc/require-returns": "off",
"jsdoc/check-param-names": "off",
"default-case": "off",
"consistent-return": "off",
// #region Specific rules for this project
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/no-danger": "off",
"react/require-default-props": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": ["arrow-function"],
"unnamedComponents": ["arrow-function"]
}
],
"react/jsx-filename-extension": [
"error",
{
"extensions": [".tsx"]
}
],
"react/react-in-jsx-scope": "off",
"react/jsx-props-no-spreading": "off",
"jsx-quotes": [
"warn",
"prefer-double"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"tailwind.config.ts",
"wagmi.config.ts",
"./src/pages/_app.page.tsx"
]
}
],
"react/no-unknown-property": [
"error",
{
"ignore": [
"jsx",
"global"
]
}
]
// #endregion
}
}