Skip to content

Commit 2e70b32

Browse files
author
wangxianqiao
committedJan 30, 2022
Use monorepo
1 parent df32e14 commit 2e70b32

File tree

397 files changed

+29136
-3979
lines changed

Some content is hidden

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

397 files changed

+29136
-3979
lines changed
 

‎.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
packages/*/dist
2+
packages/*/bin
3+
packages/*/coverage
4+
packages/*/extension

‎.eslintrc.js

+22-4
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,43 @@
11
module.exports = {
22
parser: '@typescript-eslint/parser',
3-
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
3+
extends: [
4+
'plugin:import/errors',
5+
'plugin:import/warnings',
6+
'plugin:import/typescript',
7+
'plugin:@typescript-eslint/recommended',
8+
'plugin:prettier/recommended',
9+
],
410
parserOptions: {
511
ecmaVersion: 2018,
612
sourceType: 'module',
713
},
14+
settings: {
15+
'import/resolver': {
16+
typescript: {
17+
project: 'packages/*/tsconfig.json',
18+
},
19+
},
20+
},
821
rules: {
922
'no-console': 1,
10-
'@typescript-eslint/explicit-module-boundary-types': 'off',
23+
'import/no-named-as-default': 0,
24+
// https://github.com/benmosher/eslint-plugin-import/blob/HEAD/docs/rules/order.md
25+
'import/order': ['error', { 'newlines-between': 'always' }],
26+
'import/newline-after-import': 'error',
27+
'@typescript-eslint/no-non-null-assertion': 'off',
1128
'@typescript-eslint/no-var-requires': 'off',
1229
'@typescript-eslint/explicit-member-accessibility': 'off',
1330
'@typescript-eslint/explicit-function-return-type': 'off',
31+
'@typescript-eslint/explicit-module-boundary-types': 'off',
1432
'@typescript-eslint/no-explicit-any': 'off',
15-
'no-unused-vars': 'off',
1633
'@typescript-eslint/no-unused-vars': [
17-
'error',
34+
process.env.NODE_ENV === 'production' ? 2 : 1,
1835
{
1936
vars: 'all',
2037
args: 'after-used',
2138
ignoreRestSiblings: true,
2239
caughtErrors: 'none',
40+
varsIgnorePattern: '^_',
2341
argsIgnorePattern: '^_',
2442
},
2543
],

0 commit comments

Comments
 (0)
Please sign in to comment.