forked from Tencent/cloudbase-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
31 lines (30 loc) · 855 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Tencent is pleased to support the open source community by making CloudBaseFramework - 云原生一体化部署工具 available.
*
* Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
*
* Please refer to license text included with this package for license details.
*/
module.exports = {
overrides: [
{
files: ['**/*.js'],
extends: ['@tencent/eslint-config-tencent'],
rules: {
'header/header': [2, 'resources/license-header.js'],
},
},
{
files: ['**/*.ts'],
extends: ['@tencent/eslint-config-tencent/ts'],
rules: {
'header/header': [2, 'resources/license-header.js'],
'spaced-comment': 2,
'template-curly-spacing': 2,
'nonblock-statement-body-position': 2,
semi: 2,
},
},
],
plugins: ['header'],
};