Skip to content

Commit ae60db9

Browse files
ljiawliualexqxxuv_ljiawliublurooochenxqxian
authored
fix eslint (#378)
* refactor: 使用腾讯代码规范,修复 eslint 问题 --task=20210924 Co-authored-by: alexqxxu <[email protected]> Co-authored-by: v_ljiawliu <[email protected]> Co-authored-by: blurooochen <[email protected]> Co-authored-by: Alexu <[email protected]>
1 parent c26b26a commit ae60db9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+15522
-2001
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
packages/feflow-plugin-devtool/src/templates
2+
packages/*/lib

.eslintrc.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
module.exports = {
2-
parser: '@typescript-eslint/parser',
3-
extends: [
4-
'plugin:@typescript-eslint/recommended',
5-
'prettier/@typescript-eslint',
6-
'plugin:prettier/recommended',
7-
],
8-
parserOptions: {
9-
ecmaVersion: 2018,
10-
sourceType: 'module',
11-
},
12-
rules: {
13-
1+
module.exports = {
2+
extends: ['eslint-config-tencent', 'eslint-config-tencent/prettier'],
3+
parserOptions: {
4+
project: './tsconfig.eslint.json',
145
},
15-
};
6+
rules: {},
7+
overrides: [
8+
{
9+
files: ['*.ts'],
10+
extends: ['eslint-config-tencent/ts'],
11+
},
12+
],
13+
};

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.DS_Store
33
node_modules
44
*.log
5-
*-lock.json
65
coverage/
76
packages/*/lib
87
.vscode
98
**/.nyc_output
109
tmp
1110
dist
1211
packages/feflow-cli/bin/run
13-
tnpm
12+
tnpm
13+
packages/*/package-lock.json

0 commit comments

Comments
 (0)