- 以 D:\SmartSenior 生产工程为源,纳入 AppScope、entry、cjagent、hvigor 及根配置 - 移除 build-profile.json5 的 signingConfigs(p12/p7b/cer 路径与加密口令)及 products.signingConfig 引用 - 不纳入本地与开发产物:local.properties、.idea、.hvigor、.codegenie、demo、backup_a2a_native、SESSION_LOG.md、build_err.txt、build/、oh_modules - .gitignore 追加 .codegenie 与密钥文件通配(*.p12/*.p7b/*.cer/*.jks/*.keystore/*.pem)
33 lines
869 B
JSON
33 lines
869 B
JSON
{
|
|
"files": [
|
|
"**/*.ets",
|
|
"**/*.cj"
|
|
],
|
|
"ignore": [
|
|
"**/src/ohosTest/**/*",
|
|
"**/src/test/**/*",
|
|
"**/src/mock/**/*",
|
|
"**/node_modules/**/*",
|
|
"**/oh_modules/**/*",
|
|
"**/build/**/*",
|
|
"**/.preview/**/*"
|
|
],
|
|
"ruleSet": [
|
|
"plugin:@performance/recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"rules": {
|
|
"@security/no-unsafe-aes": "error",
|
|
"@security/no-unsafe-hash": "error",
|
|
"@security/no-unsafe-mac": "warn",
|
|
"@security/no-unsafe-dh": "error",
|
|
"@security/no-unsafe-dsa": "error",
|
|
"@security/no-unsafe-ecdsa": "error",
|
|
"@security/no-unsafe-rsa-encrypt": "error",
|
|
"@security/no-unsafe-rsa-sign": "error",
|
|
"@security/no-unsafe-rsa-key": "error",
|
|
"@security/no-unsafe-dsa-key": "error",
|
|
"@security/no-unsafe-dh-key": "error",
|
|
"@security/no-unsafe-3des": "error"
|
|
}
|
|
} |