!20 删除local.properties配置文件&修改gitignore范围

Merge pull request !20 from 吕布布的耳朵/master
This commit is contained in:
openharmony_ci 2022-11-19 07:51:08 +00:00 committed by Gitee
commit 84620f87be
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 4 additions and 268 deletions

View File

@ -1,233 +0,0 @@
{
"env": {
"es2017": true,
"node": true
},
"extends": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
2
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"max-lines": [
"warn", 2000
],
"max-lines-per-function": [
"warn", 50
],
"complexity": [
"warn", 20
],
"max-depth": [
"warn", 4
],
"@typescript-eslint/array-type": [
"error",
{
"options":
"array"
}
],
"@typescript-eslint/prefer-as-const": [
"error"
],
"@typescript-eslint/no-inferrable-types": [
"error",
{
"ignoreParameters": false,
"ignoreProperties": false
}
],
"@typescript-eslint/method-signature-style": ["error", "method"],
"@typescript-eslint/naming-convention": [ "error",
{
"selector": "default",
"format": [ "camelCase" ],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "variable",
"modifiers": ["const"],
"format": [ "camelCase", "UPPER_CASE" ],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "memberLike",
"modifiers": ["static", "readonly"],
"format": [ "UPPER_CASE" ],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
},
{
"selector": "typeLike",
"format": [ "PascalCase" ]
}
],
"@typescript-eslint/no-base-to-string": [
"error",
{
"ignoredTypeNames": ["RegExp"]
}
],
"@typescript-eslint/no-confusing-non-null-assertion": ["error"],
"@typescript-eslint/no-dynamic-delete": ["error"],
"@typescript-eslint/no-empty-interface": ["error"],
"@typescript-eslint/no-explicit-any": [
"error",
{
"fixToUnknown": false,
"ignoreRestArgs": false
}
],
"@typescript-eslint/no-extra-non-null-assertion": ["error"],
"@typescript-eslint/no-floating-promises": [
"error",
{
"ignoreVoid": true,
"ignoreIIFE": false
}
],
"@typescript-eslint/no-for-in-array": ["error"],
"@typescript-eslint/no-meaningless-void-operator": [
"error",
{
"checkNever": false
}
],
"@typescript-eslint/no-invalid-void-type": [
"error",
{
"allowInGenericTypeArguments": true,
"allowAsThisParameter": false
}
],
"@typescript-eslint/prefer-readonly": ["error"],
"@typescript-eslint/prefer-string-starts-ends-with": ["error"],
"@typescript-eslint/prefer-ts-expect-error": ["error"],
"@typescript-eslint/promise-function-async": ["error"],
"@typescript-eslint/require-array-sort-compare": ["error"],
"@typescript-eslint/restrict-plus-operands": ["error"],
"@typescript-eslint/restrict-template-expressions": ["error"],
"@typescript-eslint/strict-boolean-expressions": ["error"],
"@typescript-eslint/triple-slash-reference": ["error"],
"@typescript-eslint/type-annotation-spacing": ["error"],
"@typescript-eslint/unbound-method": ["error"],
"@typescript-eslint/unified-signatures": ["error"],
"@typescript-eslint/no-unsafe-argument":["error"],
"@typescript-eslint/no-unsafe-assignment":["error"],
"@typescript-eslint/no-unsafe-call":["error"],
"@typescript-eslint/no-unsafe-member-access":["error"],
"@typescript-eslint/no-unsafe-return":["error"],
"@typescript-eslint/no-var-requires":["error"],
"@typescript-eslint/non-nullable-type-assertion-style":["error"],
"@typescript-eslint/prefer-for-of":["error"],
"@typescript-eslint/prefer-literal-enum-member":["error"],
"@typescript-eslint/prefer-optional-chain":["error"],
"@typescript-eslint/no-misused-new": ["error"],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksConditionals": true,
"checksVoidReturn": true
}
],
"@typescript-eslint/no-namespace": [
"error",
{
"allowDeclarations": false,
"allowDefinitionFiles": true
}
],
"@typescript-eslint/no-non-null-asserted-nullish-coalescing":["error"],
"@typescript-eslint/no-non-null-asserted-optional-chain":["error"],
"@typescript-eslint/no-non-null-assertion":["error"],
"@typescript-eslint/no-parameter-properties":["error"],
"@typescript-eslint/no-require-imports":["error"],
"@typescript-eslint/no-this-alias":["error"],
"@typescript-eslint/no-type-alias":["error"],
"@typescript-eslint/no-unnecessary-boolean-literal-compare":["error"],
"@typescript-eslint/no-unnecessary-condition":["error"],
"@typescript-eslint/no-unnecessary-qualifier":["error"],
"@typescript-eslint/no-unnecessary-type-arguments":["error"],
"@typescript-eslint/no-unnecessary-type-assertion":["error"],
"@typescript-eslint/no-unnecessary-type-constraint":["error"],
"@typescript-eslint/adjacent-overload-signatures": ["error"],
"@typescript-eslint/await-thenable": ["error"],
"@typescript-eslint/ban-ts-comment":[
"error",
{
"ts-expect-error": true,
"ts-ignore": true,
"ts-nocheck": true,
"ts-check": true
}
],
"@typescript-eslint/ban-tslint-comment": "error",
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Array": {
"message": "Use [] instead",
"fixWith": "[]"
},
"Boolean": {
"message": "Use boolean instead",
"fixWith": "boolean"
},
"Number": {
"message": "Use number instead",
"fixWith": "number"
},
"function": "Do not use Function",
"String": {
"message": "Use string instead",
"fixWith": "string"
},
"{}": {
"message": "Use object instead",
"fixWith": "object"
}
}
}
],
"@typescript-eslint/consistent-indexed-object-style": [ "error", "record" ],
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": false,
"allowDirectConstAssertionInArrowFunctions": false,
"allowConciseArrowFunctionExpressionsStartingWithVoid": false
}
],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "no-public"
}
]
}
}

15
.gitattributes vendored
View File

@ -1,15 +0,0 @@
*.tgz filter=lfs diff=lfs merge=lfs -text
*.trp filter=lfs diff=lfs merge=lfs -text
*.apk filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.asm filter=lfs diff=lfs merge=lfs -text
*.8svn filter=lfs diff=lfs merge=lfs -text
*.9svn filter=lfs diff=lfs merge=lfs -text
*.dylib filter=lfs diff=lfs merge=lfs -text
*.exe filter=lfs diff=lfs merge=lfs -text
*.a filter=lfs diff=lfs merge=lfs -text
*.so filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.dll filter=lfs diff=lfs merge=lfs -text

11
.gitignore vendored
View File

@ -1,8 +1,5 @@
/product/phone/build
/common/build
/build/
/features/screenshot/build/
**/build
/.hvigor
/.idea
/.gradle
local.properties
node_modules/
/local.properties
/node_modules

View File

@ -1,13 +0,0 @@
# This file is automatically generated by DevEco Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file should *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Tue Mar 08 16:56:18 CST 2022
sdk.dir=XXX
nodejs.dir=XXX
npm.dir=XXX