• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 *
3 * Copyright (c) 2025 Huawei Device Co., Ltd.
4 *
5 * All rights reserved.
6 * Redistribution and use in source and binary forms, with or without modification,
7 * are permitted provided that the following conditions are met:
8 *
9 * Redistributions of source code must retain the above copyright notice,this
10 * list of conditions and the following disclaimer.
11 *
12 * Redistributions in binary form must reproduce the above copyright notice,
13 * this list of conditions and the following disclaimer in the documentation
14 * and/or other materials provided with the distribution.
15 *
16 * THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND ANY EXPRESS OR IMPLIED WARRANTIES,
17 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
22 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS,
23 *
24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27{
28  "files": [
29    "**/*.ets"
30  ],
31  "ignore": [
32    "**/src/ohosTest/**/*",
33    "**/src/test/**/*",
34    "**/src/mock/**/*",
35    "**/node_modules/**/*",
36    "**/oh_modules/**/*",
37    "**/build/**/*",
38    "**/.preview/**/*"
39  ],
40  "ruleSet": [
41    "plugin:@performance/recommended",
42    "plugin:@typescript-eslint/recommended"
43  ],
44  "rules": {
45    "@security/no-unsafe-aes": "error",
46    "@security/no-unsafe-hash": "error",
47    "@security/no-unsafe-mac": "warn",
48    "@security/no-unsafe-dh": "error",
49    "@security/no-unsafe-dsa": "error",
50    "@security/no-unsafe-ecdsa": "error",
51    "@security/no-unsafe-rsa-encrypt": "error",
52    "@security/no-unsafe-rsa-sign": "error",
53    "@security/no-unsafe-rsa-key": "error",
54    "@security/no-unsafe-dsa-key": "error",
55    "@security/no-unsafe-dh-key": "error",
56    "@security/no-unsafe-3des": "error"
57  }
58}