-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 所有包的 build, lint, test 都通过根目录统一管理
1. 删除不必要的包 2. 所有的包都不再拥有自己的 devDep 3. build, lint, test 全部通过根目录的依赖统一完成 chore: 使用 eslint 格式化所有代码 chore: 使用 eslint 格式化所有代码 chore: 使用根目录 tsconfig.json 控制 ts 代码 chore: 所有包的 build, lint, test 都通过根目录统一管理
- Loading branch information
Showing
623 changed files
with
43,518 additions
and
138,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
dist | ||
__tests__ | ||
lib | ||
node_modules | ||
*.d.ts | ||
coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,51 @@ | ||
module.exports = { | ||
extends: ['standard', 'standard-jsx'], | ||
env: { | ||
browser: true, | ||
node: true, | ||
es6: true, | ||
jest: true | ||
'parser': '@typescript-eslint/parser', | ||
'plugins': ['@typescript-eslint', 'jest', 'react'], | ||
'extends': [ | ||
'standard', | ||
'plugin:@typescript-eslint/recommended' | ||
], | ||
'rules': { | ||
'no-unused-vars': 'off', | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/indent': ['error', 2], | ||
'@typescript-eslint/no-unused-vars': ['error', { 'argsIgnorePattern': '^_' }], | ||
'@typescript-eslint/no-empty-function': 0, | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'@typescript-eslint/no-non-null-assertion': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-var-requires': 0, | ||
'@typescript-eslint/interface-name-prefix': 0, | ||
'@typescript-eslint/member-delimiter-style': 0, | ||
'@typescript-eslint/camelcase': 0, | ||
'@typescript-eslint/no-namespace': 0, | ||
'standard/no-callback-literal': 0, | ||
'no-console': ['error', { allow: ['warn', 'error'] }], | ||
'prefer-spread': 0, | ||
'prefer-rest-params': 0, | ||
'no-prototype-builtins': 0, | ||
'react/jsx-uses-vars': 'warn', | ||
'camelcase': ['error', {allow: ['^internal_', '^unstable_']}] | ||
}, | ||
globals: { | ||
wx: true, | ||
my: true, | ||
swan: true, | ||
tt: true, | ||
qq: true, | ||
getApp: true, | ||
__wxRoute: true, | ||
getCurrentPages: true, | ||
requirePlugin: true | ||
'env': { | ||
'jest/globals': true, | ||
'browser': true, | ||
'node': true, | ||
'es6': true, | ||
}, | ||
rules: { | ||
'no-unused-expressions': 0, | ||
'no-useless-constructor': 0 | ||
'globals': { | ||
'testRule': 'readonly', | ||
'wx': 'readonly', | ||
'qq': 'readonly', | ||
'tt': 'readonly', | ||
'swan': 'readonly', | ||
'my': 'readonly', | ||
'getCurrentPages': 'readonly', | ||
'getApp': 'readonly' | ||
}, | ||
settings: { | ||
react: { | ||
pragma: 'Nerv' | ||
'parserOptions': { | ||
'ecmaFeatures': { | ||
'jsx': true | ||
} | ||
}, | ||
parser: 'babel-eslint' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ lerna-debug.log | |
yarn-error.log | ||
_book | ||
.idea | ||
.vscode | ||
temp | ||
website/build | ||
website/package.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
{ | ||
"language": "typescript", | ||
"autoFix": true | ||
}, | ||
{ | ||
"language": "typescriptreact", | ||
"autoFix": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,15 @@ | ||
{ | ||
"lerna": "2.10.0", | ||
"packages": [ | ||
"packages/taro", | ||
"packages/taro-utils", | ||
"packages/taro-async-await", | ||
"packages/taro-cli", | ||
"packages/taro-components", | ||
"packages/taro-components-rn", | ||
"packages/taro-components-qa", | ||
"packages/taro-h5", | ||
"packages/taro-plugin-babel", | ||
"packages/taro-plugin-csso", | ||
"packages/taro-plugin-sass", | ||
"packages/taro-plugin-uglifyjs", | ||
"packages/taro-plugin-typescript", | ||
"packages/taro-plugin-less", | ||
"packages/taro-plugin-stylus", | ||
"packages/taro-redux", | ||
"packages/taro-redux-h5", | ||
"packages/taro-redux-rn", | ||
"packages/taro-rn", | ||
"packages/taro-router-rn", | ||
"packages/taro-rn-runner", | ||
"packages/taro-router", | ||
"packages/taro-weapp", | ||
"packages/taro-swan", | ||
"packages/taro-alipay", | ||
"packages/taro-tt", | ||
"packages/taro-quickapp", | ||
"packages/taro-qq", | ||
"packages/taro-jd", | ||
"packages/taro-webpack-runner", | ||
"packages/taro-mini-runner", | ||
"packages/postcss-plugin-constparse", | ||
"packages/eslint-config-taro", | ||
"packages/eslint-plugin-taro", | ||
"packages/taro-transformer-wx", | ||
"packages/postcss-pxtransform", | ||
"packages/postcss-unit-transform", | ||
"packages/babel-plugin-transform-jsx-to-stylesheet", | ||
"packages/babel-plugin-transform-taroapi", | ||
"packages/taro-mobx", | ||
"packages/taro-mobx-common", | ||
"packages/taro-mobx-h5", | ||
"packages/taro-mobx-rn", | ||
"packages/taro-with-weapp", | ||
"packages/taroize", | ||
"packages/stylelint-taro-rn", | ||
"packages/stylelint-config-taro-rn", | ||
"packages/css-to-react-native", | ||
"packages/runtime" | ||
], | ||
"lerna": "3.16.5", | ||
"useWorkspaces": true, | ||
"command": { | ||
"publish": { | ||
"message": "chore(release): publish %s" | ||
}, | ||
"create": { | ||
"homepage": "https://github.com/nervjs/taro", | ||
"license": "MIT" | ||
} | ||
}, | ||
"version": "1.3.22", | ||
"version": "1.3.15", | ||
"npmClient": "npm" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
> @tarojs/taro@ lint /Users/yuche/Developer/taro | ||
> eslint packages/ --ext .js --ext .ts --fix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
packages/babel-plugin-transform-jsx-to-stylesheet/.babelrc
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...-jsx-to-stylesheet/src/__tests__/index.js → ...jsx-to-stylesheet/__tests__/index.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
packages/babel-plugin-transform-jsx-to-stylesheet/jest.config.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.