@lark-apaas/fullstack-presets 1.1.5-beta.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -97,13 +97,9 @@ const strictSyntaxRules = [
|
|
|
97
97
|
const looseSpecificPlugins = {
|
|
98
98
|
'@lark-apaas': { rules: custom_eslint_rules_1.customRules }
|
|
99
99
|
};
|
|
100
|
-
const looseSpecificRules = {
|
|
101
|
-
'@lark-apaas/no-nested-styled-jsx': 'error'
|
|
102
|
-
};
|
|
103
100
|
// 宽松模式下覆盖的规则(关闭非关键规则)
|
|
104
101
|
const looseOverrideRules = isLooseMode
|
|
105
102
|
? {
|
|
106
|
-
...looseSpecificRules,
|
|
107
103
|
'@typescript-eslint/no-unsafe-function-type': 'off',
|
|
108
104
|
'@typescript-eslint/no-unused-expressions': 'off',
|
|
109
105
|
'no-useless-escape': 'off', // 允许不必要的转义字符
|
|
@@ -147,6 +143,7 @@ const baseConfig = {
|
|
|
147
143
|
'@lark-apaas/require-app-container': 'error',
|
|
148
144
|
// 平台规则:禁止直接调用 capability 内部 API,应使用 capabilityClient
|
|
149
145
|
'@lark-apaas/no-direct-capability-api': 'error',
|
|
146
|
+
'@lark-apaas/no-nested-styled-jsx': 'error',
|
|
150
147
|
// TypeScript 规则
|
|
151
148
|
'@typescript-eslint/no-unused-vars': 'off', // 未使用变量检查关闭
|
|
152
149
|
'@typescript-eslint/no-explicit-any': 'off', // 允许使用 any 类型
|