• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16// Enhance_Compiler_Test_008
17module.exports = [];
18
19// Enhance_Compiler_Test_009
20module.exports = { rules: 123 };
21
22// Enhance_Compiler_Test_010
23module.exports = {
24  extends: 'recommended',
25  rules: {
26    hello: 'String',
27  },
28};
29
30// Enhance_Compiler_Test_011
31module.exports = {
32  extends: 'recommended',
33  rules: {
34    div: {
35      name: 'jack',
36    },
37  },
38};
39
40// Enhance_Compiler_Test_012
41module.exports = {
42  rules: {
43    hello: {},
44  },
45};
46
47// Enhance_Compiler_Test_013
48module.exports = {
49  extends: 'recommended',
50  rules: {
51    example: {},
52  },
53};
54
55// Enhance_Compiler_Test_014
56module.exports = {
57  extends: 'recommended',
58  rules: {
59    swiper: {
60      attrs: {
61        vertical: {
62          enum: ['change'],
63        },
64      },
65    },
66  },
67};
68
69// Enhance_Compiler_Test_015
70module.exports = {
71  extends: 'recommended',
72  rules: {
73    swiper: {
74      attrs: {
75        display: {},
76      },
77    },
78  },
79};
80