forked from DevCloudFE/react-devui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
115 lines (115 loc) · 3.47 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
113
114
115
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx", "import", "jsdoc", "eslint-plugin-tsdoc", "markdown"],
"extends": ["plugin:prettier/recommended"],
"overrides": [
{
"files": ["**/*.md"],
"processor": "markdown/markdown"
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "scope:shared",
"onlyDependOnLibsWithTags": ["scope:shared"]
},
{
"sourceTag": "scope:icons",
"onlyDependOnLibsWithTags": ["scope:shared", "scope:icons"]
},
{
"sourceTag": "scope:ui",
"onlyDependOnLibsWithTags": ["scope:shared", "scope:icons", "scope:ui"]
},
{
"sourceTag": "scope:platform",
"onlyDependOnLibsWithTags": ["scope:shared", "scope:icons", "scope:ui", "scope:platform"]
},
{
"sourceTag": "scope:site",
"onlyDependOnLibsWithTags": ["scope:shared", "scope:icons", "scope:ui", "scope:site"]
}
]
}
],
"import/order": [
"error",
{
"groups": ["type", "builtin", "external", "internal", ["parent", "sibling", "index"]],
"pathGroups": [
{
"pattern": "@react-devui/**",
"group": "internal",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["type", "builtin"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": false
},
"warnOnUnassignedImports": true
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {
"tsdoc/syntax": "warn",
"no-unreachable": "error",
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/no-confusing-non-null-assertion": "error",
"@typescript-eslint/no-implicit-any-catch": "error",
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": true,
"ignoreProperties": true
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": false
}
],
"no-unused-expressions": "off",
"@typescript-eslint/no-unused-expressions": ["error"]
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript", "plugin:jsdoc/recommended"],
"rules": {
"jsdoc/require-jsdoc": "off"
}
},
{
"files": ["*.tsx", "*.jsx"],
"rules": {}
},
{
"files": ["**/*.md/*.ts", "**/*.md/*.tsx"],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}