mirror of
https://github.com/openharmony/applications_camera.git
synced 2026-07-01 20:35:06 -04:00
9564a2f24a
Signed-off-by: lijinfengde123 <lijinfeng26@huawei.com>
51 lines
1.0 KiB
JSON
51 lines
1.0 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2021": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"rules": {
|
|
"indent": [
|
|
"error",
|
|
2
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"single"
|
|
],
|
|
"@typescript-eslint/no-inferrable-types": [
|
|
"error",
|
|
{
|
|
"ignoreParameters": false,
|
|
"ignoreProperties": false
|
|
}
|
|
],
|
|
"max-lines": [
|
|
"warn", 2000
|
|
],
|
|
"max-lines-per-function": [
|
|
"warn", 50
|
|
],
|
|
"complexity": [
|
|
"warn", 20
|
|
],
|
|
"max-depth": [
|
|
"warn", 4
|
|
],
|
|
"@typescript-eslint/prefer-as-const": [
|
|
"error"
|
|
]
|
|
}
|
|
}
|