!2826 eslint配置更新

Merge pull request !2826 from 椎名真昼/eslint_update
This commit is contained in:
openharmony_ci 2023-12-20 02:09:42 +00:00 committed by Gitee
commit 5a858169a1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -37,17 +37,21 @@
"comma-dangle": 2,
"comma-spacing": 2,
"comma-style": 2,
"consistent-return": 2,
"curly": 2,
"dot-location": [2, "property"],
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"key-spacing": 2,
"keyword-spacing": 2,
"max-len": [2, { "code": 160 }],
"new-cap": 2,
"new-parens": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-cond-assign": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
@ -60,6 +64,7 @@
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-multiple-empty-lines": [2, { "max": 1 }],
"no-new-func": 2,
"no-new-object": 2,
"no-new-wrappers": 2,
"no-octal-escape": 2,
@ -73,12 +78,15 @@
"no-undef-init": 2,
"no-unmodified-loop-condition": 2,
"no-unneeded-ternary": [2, { "defaultAssignment": false }],
"no-unsafe-finally": 2,
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
"no-useless-computed-key": 2,
"no-useless-constructor": 2,
"no-whitespace-before-property": 2,
"one-var": [2, { "initialized": "never" }],
"one-var": [2, "never"],
"operator-linebreak": [2, "after"],
"padded-blocks": [2, "never"],
"prefer-rest-params": 2,
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"semi": 2,
"semi-spacing": 2,